Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: fix rebase validation (#10665)
Liu Ji50bea51033a4
diff --git a/frontend/src/components/Branch/BranchRebaseView/BranchRebaseView.vue b/frontend/src/components/Branch/BranchRebaseView/BranchRebaseView.vueindex 01eea41c44..ede68cf4f6 100644--- a/frontend/src/components/Branch/BranchRebaseView/BranchRebaseView.vue+++ b/frontend/src/components/Branch/BranchRebaseView/BranchRebaseView.vue@@ -221,21 +221,25 @@ const handleRebaseBranch = async () => {if (!source) return;const head = headBranch.value;if (!head) return;- const resolveConflict = resolveConflictRef.value;- if (!resolveConflict) return;- state.isRebasing = true;- try {+ let mergedSchema = "";+ const resolveConflict = resolveConflictRef.value;+ if (resolveConflict) {const validation = resolveConflict.validateConflictSchema();if (!validation.valid) {const confirmed = await confirmRebaseWithMaybeConflict();if (!confirmed) return;}+ mergedSchema = validation.schema ?? "";+ }+ state.isRebasing = true;++ try {const response = await branchStore.rebaseBranch({name: head.name,sourceBranch: state.sourceType === "BRANCH" ? source.name : "",sourceDatabase: state.sourceType === "DATABASE" ? source.name : "",- mergedSchema: validation.schema ?? "",+ mergedSchema,etag: "",validateOnly: false,});