Skip to content

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

feat(frontend): remove release guard of gh-ost (#1549)

Liu Jif6eed0f636fb
diff --git a/frontend/src/components/AlterSchemaPrepForm/AlterSchemaPrepForm.vue b/frontend/src/components/AlterSchemaPrepForm/AlterSchemaPrepForm.vue
index 22205fc5f9..f3745deb0d 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, isDev, sortDatabaseList } from "@/utils";
+import { allowGhostMigration, sortDatabaseList } from "@/utils";
import VCSTipsInfo from "./VCSTipsInfo.vue";
import ProjectStandardView, {
State as ProjectStandardState,
@@ -230,10 +230,6 @@ export default defineComponent({
// 'online' -> online migration
// false -> user clicked cancel button
const 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/components/Issue/logic/base.ts b/frontend/src/components/Issue/logic/base.ts
index 2fba35f8c0..2ad10ee3f7 100644
--- a/frontend/src/components/Issue/logic/base.ts
+++ b/frontend/src/components/Issue/logic/base.ts
@@ -16,7 +16,6 @@ import {
activeTaskInStage,
idFromSlug,
indexFromSlug,
- isDev,
issueSlug,
stageSlug,
taskSlug,
@@ -173,8 +172,6 @@ export const useBaseIssueLogic = (params: {
});
const isGhostMode = computed((): boolean => {
- if (!isDev()) return false;
-
return issue.value.type === "bb.issue.database.schema.update.ghost";
});
diff --git a/frontend/src/views/DatabaseDetail.vue b/frontend/src/views/DatabaseDetail.vue
index 04aef68101..8f01b5841a 100644
--- a/frontend/src/views/DatabaseDetail.vue
+++ b/frontend/src/views/DatabaseDetail.vue
@@ -289,7 +289,6 @@ import {
isDBAOrOwner,
connectionSlug,
hidePrefix,
- isDev,
allowGhostMigration,
} from "@/utils";
import {
@@ -470,10 +469,6 @@ const tryTransferProject = () => {
// 'online' -> online migration
// false -> user clicked cancel button
const isUsingGhostMigration = async (databaseList: Database[]) => {
- if (!isDev()) {
- return "normal";
- }
-
// check if all selected databases supports gh-ost
if (allowGhostMigration(databaseList)) {
// open the dialog to ask the user