Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

fix(frontend): missing databaseList parameters in new issue URL (#3979)

Liu Jifc4d9543fc34
diff --git a/frontend/src/components/AlterSchemaPrepForm/SchemaEditorModal.vue b/frontend/src/components/AlterSchemaPrepForm/SchemaEditorModal.vue
index 0c7ccc6768..2600bc3cc2 100644
--- a/frontend/src/components/AlterSchemaPrepForm/SchemaEditorModal.vue
+++ b/frontend/src/components/AlterSchemaPrepForm/SchemaEditorModal.vue
@@ -391,12 +391,21 @@ const handlePreviewIssue = async () => {
mode: "normal",
ghost: undefined,
};
- if (isTenantProject && props.databaseIdList.length > 1) {
- query.mode = "tenant";
+ if (isTenantProject) {
+ if (props.databaseIdList.length > 1) {
+ // A tenant pipeline with 2 or more databases will be generated
+ // via deployment config, so we don't need the databaseList parameter.
+ query.mode = "tenant";
+ } else {
+ // A tenant pipeline with only 1 database will be downgraded to
+ // a standard pipeline.
+ // So we need to provide the databaseList parameter
+ query.databaseList = props.databaseIdList.join(",");
+ }
}
if (props.alterType !== "TENANT") {
// If we are not using tenant deployment config pipeline
- // we need to pass the databaseIdList explicitly.
+ // we need to pass the databaseList explicitly.
query.databaseList = props.databaseIdList.join(",");
}
if (state.selectedTab === "raw-sql") {