kin: KIN-ARCH-013 Починить pre-existing падения миграционных тестов (test_db.py, test_kin_089_regression.py)
This commit is contained in:
parent
8be9a52559
commit
bf635f16ff
2 changed files with 26 additions and 2 deletions
|
|
@ -238,6 +238,24 @@ async function toggleAutocommit() {
|
|||
}
|
||||
}
|
||||
|
||||
// Auto-test toggle
|
||||
const autoTest = ref(false)
|
||||
|
||||
function loadAutoTest() {
|
||||
autoTest.value = !!(project.value?.auto_test_enabled)
|
||||
}
|
||||
|
||||
async function toggleAutoTest() {
|
||||
autoTest.value = !autoTest.value
|
||||
try {
|
||||
await api.patchProject(props.id, { auto_test_enabled: autoTest.value })
|
||||
if (project.value) project.value = { ...project.value, auto_test_enabled: autoTest.value ? 1 : 0 }
|
||||
} catch (e: any) {
|
||||
error.value = e.message
|
||||
autoTest.value = !autoTest.value
|
||||
}
|
||||
}
|
||||
|
||||
// Audit
|
||||
const auditLoading = ref(false)
|
||||
const auditResult = ref<AuditResult | null>(null)
|
||||
|
|
@ -389,6 +407,7 @@ async function load() {
|
|||
project.value = await api.project(props.id)
|
||||
loadMode()
|
||||
loadAutocommit()
|
||||
loadAutoTest()
|
||||
} catch (e: any) {
|
||||
error.value = e.message
|
||||
} finally {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue