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): add release guard to gh-ost (#1716)
Liu Ji116219fc3ff0
diff --git a/frontend/src/components/AlterSchemaPrepForm/AlterSchemaPrepForm.vue b/frontend/src/components/AlterSchemaPrepForm/AlterSchemaPrepForm.vueindex f3745deb0d..22205fc5f9 100644--- a/frontend/src/components/AlterSchemaPrepForm/AlterSchemaPrepForm.vue+++ b/frontend/src/components/AlterSchemaPrepForm/AlterSchemaPrepForm.vue@@ -105,7 +105,7 @@ import {Repository,UNKNOWN_ID,} from "@/types";-import { allowGhostMigration, sortDatabaseList } from "@/utils";+import { allowGhostMigration, isDev, sortDatabaseList } from "@/utils";import VCSTipsInfo from "./VCSTipsInfo.vue";import ProjectStandardView, {State as ProjectStandardState,@@ -230,6 +230,10 @@ export default defineComponent({// 'online' -> online migration// false -> user clicked cancel buttonconst isUsingGhostMigration = async (databaseList: Database[]) => {+ if (!isDev()) {+ return "normal";+ }+// never available for "bb.issue.database.data.update"if (props.type === "bb.issue.database.data.update") {return "normal";diff --git a/frontend/src/views/DatabaseDetail.vue b/frontend/src/views/DatabaseDetail.vueindex 8f01b5841a..2ab507b0cb 100644--- a/frontend/src/views/DatabaseDetail.vue+++ b/frontend/src/views/DatabaseDetail.vue@@ -290,6 +290,7 @@ import {connectionSlug,hidePrefix,allowGhostMigration,+ isDev,} from "@/utils";import {ProjectId,@@ -469,6 +470,10 @@ const tryTransferProject = () => {// 'online' -> online migration// false -> user clicked cancel buttonconst isUsingGhostMigration = async (databaseList: Database[]) => {+ if (!isDev()) {+ return "normal";+ }+// check if all selected databases supports gh-ostif (allowGhostMigration(databaseList)) {// open the dialog to ask the user