Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
feat(frontend): support ghost task check (#1692)
Liu Ji36833c5b97b4
diff --git a/frontend/src/components/Issue/TaskCheckBadgeBar.vue b/frontend/src/components/Issue/TaskCheckBadgeBar.vueindex bcd9deab51..5937f8e72f 100644--- a/frontend/src/components/Issue/TaskCheckBadgeBar.vue+++ b/frontend/src/components/Issue/TaskCheckBadgeBar.vue@@ -226,6 +226,7 @@ export default defineComponent({// Defines the order of TaskCheckTypeconst TaskCheckTypeOrderList: TaskCheckType[] = [+ "bb.task-check.database.ghost.sync","bb.task-check.general.earliest-allowed-time","bb.task-check.database.statement.compatibility","bb.task-check.database.statement.syntax",@@ -260,5 +261,6 @@ const TaskCheckTypeNameDict = new Map<TaskCheckType, string>(["bb.task-check.general.earliest-allowed-time","task.check-type.earliest-allowed-time",],+ ["bb.task-check.database.ghost.sync", "task.check-type.ghost-sync"],]);</script>diff --git a/frontend/src/components/Issue/TaskCheckBar.vue b/frontend/src/components/Issue/TaskCheckBar.vueindex d5da4920c9..5767b07b0e 100644--- a/frontend/src/components/Issue/TaskCheckBar.vue+++ b/frontend/src/components/Issue/TaskCheckBar.vue@@ -142,7 +142,8 @@ export default defineComponent({if (!props.allowRunTask) return false;return ((props.task.type == "bb.task.database.schema.update" ||- props.task.type == "bb.task.database.data.update") &&+ props.task.type == "bb.task.database.data.update" ||+ props.task.type === "bb.task.database.schema.update.ghost.sync") &&(props.task.status == "PENDING" ||props.task.status == "PENDING_APPROVAL" ||props.task.status == "RUNNING" ||diff --git a/frontend/src/locales/en-US.json b/frontend/src/locales/en-US.jsonindex 39bcc82829..2ac2a822bf 100644--- a/frontend/src/locales/en-US.json+++ b/frontend/src/locales/en-US.json@@ -236,7 +236,8 @@"connection": "Connection","migration-schema": "Migration schema","sql-review": "SQL review",- "earliest-allowed-time": "Earliest allowed time"+ "earliest-allowed-time": "Earliest allowed time",+ "ghost-sync": "gh-ost sync"},"earliest-allowed-time-hint": "'@:{'common.when'}' specifies the expected execution timing for this task. If this field is not specified, the task will be executed once it has passed all other gating criteria.","earliest-allowed-time-unset": "Unset",diff --git a/frontend/src/locales/zh-CN.json b/frontend/src/locales/zh-CN.jsonindex d38db0fe6f..bba6f484fc 100644--- a/frontend/src/locales/zh-CN.json+++ b/frontend/src/locales/zh-CN.json@@ -236,7 +236,8 @@"connection": "连接","migration-schema": "变更 schema","sql-review": "SQL 审查",- "earliest-allowed-time": "最早执行时间"+ "earliest-allowed-time": "最早执行时间",+ "ghost-sync": "gh-ost 同步"},"earliest-allowed-time-hint": "'@:{'common.when'}' 指定了该任务最早允许执行的时间。如果该字段没有被指定,则任务会在满足其他条件后立即执行。","comment": "评论",diff --git a/frontend/src/types/pipeline/task.ts b/frontend/src/types/pipeline/task.tsindex ed78a68442..6025fca66f 100644--- a/frontend/src/types/pipeline/task.ts+++ b/frontend/src/types/pipeline/task.ts@@ -205,8 +205,7 @@ export type TaskCheckType =| "bb.task-check.database.connect"| "bb.task-check.instance.migration-schema"| "bb.task-check.general.earliest-allowed-time"- | "bb.task-check.database.schema.update.ghost"- | "bb.task-check.database.schema.update.ghost.cutover";+ | "bb.task-check.database.ghost.sync";export type TaskCheckDatabaseStatementAdvisePayload = {statement: string;