Skip to content

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

chore: remove release guard for review center (#12321)

boojack0bf3fbabe710
diff --git a/frontend/src/components/AlterSchemaPrepForm/AlterSchemaPrepForm.vue b/frontend/src/components/AlterSchemaPrepForm/AlterSchemaPrepForm.vue
index a1701b0f77..af17227995 100644
--- a/frontend/src/components/AlterSchemaPrepForm/AlterSchemaPrepForm.vue
+++ b/frontend/src/components/AlterSchemaPrepForm/AlterSchemaPrepForm.vue
@@ -219,10 +219,7 @@
</div>
<div class="flex items-center justify-end gap-x-3">
- <NCheckbox
- v-if="!props.planOnly && isDev()"
- v-model:checked="state.planOnly"
- >
+ <NCheckbox v-if="!props.planOnly" v-model:checked="state.planOnly">
{{ $t("issue.sql-review-only") }}
</NCheckbox>
<NButton @click.prevent="cancel">
@@ -316,7 +313,6 @@ import {
extractEnvironmentResourceName,
extractInstanceResourceName,
extractProjectResourceName,
- isDev,
} from "@/utils";
import { generateDatabaseGroupIssueRoute } from "@/utils/databaseGroup/issue";
import AdvancedSearch from "../AdvancedSearch";
diff --git a/frontend/src/components/AlterSchemaPrepForm/SchemaEditorModal.vue b/frontend/src/components/AlterSchemaPrepForm/SchemaEditorModal.vue
index e9c6ca7964..67b51a239e 100644
--- a/frontend/src/components/AlterSchemaPrepForm/SchemaEditorModal.vue
+++ b/frontend/src/components/AlterSchemaPrepForm/SchemaEditorModal.vue
@@ -94,7 +94,7 @@
</template>
</div>
<div class="flex justify-end items-center space-x-3">
- <NCheckbox v-if="isDev()" v-model:checked="state.planOnly">
+ <NCheckbox v-model:checked="state.planOnly">
{{ $t("issue.sql-review-only") }}
</NCheckbox>
<NButton @click="dismissModal">
@@ -150,7 +150,7 @@ import { Engine } from "@/types/proto/v1/common";
import type { DatabaseMetadata } from "@/types/proto/v1/database_service";
import { DatabaseMetadataView } from "@/types/proto/v1/database_service";
import { TenantMode } from "@/types/proto/v1/project_service";
-import { TinyTimer, defer, extractProjectResourceName, isDev } from "@/utils";
+import { TinyTimer, defer, extractProjectResourceName } from "@/utils";
import { MonacoEditor } from "../MonacoEditor";
import { provideSQLCheckContext } from "../SQLCheck";
import type { EditTarget, GenerateDiffDDLResult } from "../SchemaEditorLite";
diff --git a/frontend/src/components/Project/ProjectSidebarV1.vue b/frontend/src/components/Project/ProjectSidebarV1.vue
index b54b7839c5..e24972dc4e 100644
--- a/frontend/src/components/Project/ProjectSidebarV1.vue
+++ b/frontend/src/components/Project/ProjectSidebarV1.vue
@@ -52,7 +52,7 @@ import { getProjectName } from "@/store/modules/v1/common";
import type { ProjectPermission } from "@/types";
import { DEFAULT_PROJECT_V1_NAME } from "@/types";
import { TenantMode } from "@/types/proto/v1/project_service";
-import { hasProjectPermissionV2, isDev } from "@/utils";
+import { hasProjectPermissionV2 } from "@/utils";
import { useProjectDatabaseActions } from "../KBar/useDatabaseActions";
import { useCurrentProject } from "./useCurrentProject";
@@ -209,7 +209,7 @@ const projectSidebarItemList = computed((): ProjectSidebarItem[] => {
icon: h(SearchCodeIcon),
path: PROJECT_V1_ROUTE_REVIEW_CENTER,
type: "div",
- hide: isDefaultProject.value || !isDev(),
+ hide: isDefaultProject.value,
},
{
title: t("export-center.self"),
diff --git a/frontend/src/views/DashboardSidebar.vue b/frontend/src/views/DashboardSidebar.vue
index 0368297ac0..ae90b2ec89 100644
--- a/frontend/src/views/DashboardSidebar.vue
+++ b/frontend/src/views/DashboardSidebar.vue
@@ -56,11 +56,7 @@ import {
} from "@/router/dashboard/workspaceRoutes";
import { useCurrentUserV1 } from "@/store";
import type { WorkspacePermission } from "@/types";
-import {
- hasWorkspacePermissionV2,
- hasProjectPermissionV2,
- isDev,
-} from "@/utils";
+import { hasWorkspacePermissionV2, hasProjectPermissionV2 } from "@/utils";
interface DashboardSidebarItem extends SidebarItem {
navigationId?: string;
@@ -211,12 +207,11 @@ const dashboardSidebarItemList = computed((): DashboardSidebarItem[] => {
name: WORKSPACE_ROUTE_REVIEW_CENTER,
type: "route",
shortcuts: ["g", "r", "c"],
- hide:
- !hasProjectPermissionV2(
- undefined,
- currentUserV1.value,
- "bb.projects.getIamPolicy"
- ) || !isDev(),
+ hide: !hasProjectPermissionV2(
+ undefined,
+ currentUserV1.value,
+ "bb.projects.getIamPolicy"
+ ),
},
{
navigationId: "bb.navigation.export-center",