Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
fix(bbc): hide SQL Review section in repo settings (#5349)
Joe Chen93cd367f176d
diff --git a/frontend/src/components/RepositoryForm.vue b/frontend/src/components/RepositoryForm.vueindex ffe36e7cd1..739a19cca2 100644--- a/frontend/src/components/RepositoryForm.vue+++ b/frontend/src/components/RepositoryForm.vue@@ -260,7 +260,7 @@</template></div></div>- <div>+ <div v-if="canEnableSQLReview"><div class="textlabel flex gap-x-1">{{ $t("repository.sql-review-ci") }}<FeatureBadge feature="bb.feature.vcs-sql-review" class="text-accent" />@@ -379,6 +379,11 @@ export default defineComponent({const isProjectSchemaChangeTypeSDL = computed(() => {return (props.schemaChangeType || "DDL") === "SDL";});+ const canEnableSQLReview = computed(() => {+ return (+ props.vcsType.startsWith("GITLAB") || props.vcsType.startsWith("GITHUB")+ );+ });const enableSQLReviewTitle = computed(() => {return props.vcsType.startsWith("GITLAB")? t("repository.sql-review-ci-enable-gitlab")@@ -518,6 +523,7 @@ export default defineComponent({getRquiredPlanString: subscriptionStore.getRquiredPlanString,isProjectSchemaChangeTypeDDL,isProjectSchemaChangeTypeSDL,+ canEnableSQLReview,enableSQLReviewTitle,sampleFilePath,sampleSchemaPath,