Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: hide plan check runs for specs with release (#17099)
boojackfb84ac2f2ceb
diff --git a/frontend/src/components/Plan/components/SpecDetailView/SpecDetailView.vue b/frontend/src/components/Plan/components/SpecDetailView/SpecDetailView.vueindex 4350a81705..3db71eafcc 100644--- a/frontend/src/components/Plan/components/SpecDetailView/SpecDetailView.vue+++ b/frontend/src/components/Plan/components/SpecDetailView/SpecDetailView.vue@@ -6,8 +6,10 @@<SpecListSection v-if="isCreating || plan.specs.length > 1" /><TargetListSection /></div>- <SQLCheckV1Section v-if="isCreating" />- <PlanCheckSection v-else />+ <template v-if="!specHasRelease">+ <SQLCheckV1Section v-if="isCreating" />+ <PlanCheckSection v-else />+ </template><div class="w-full space-y-3 pt-3"><StatementSection /><Configuration />@@ -16,8 +18,9 @@</template><script setup lang="ts">-import type { Ref } from "vue";+import { computed, type Ref } from "vue";import { useCurrentProjectV1 } from "@/store";+import { isValidReleaseName } from "@/types";import type { Plan_Spec } from "@/types/proto-es/v1/plan_service_pb";import { usePlanContext } from "../../logic/context";import Configuration from "../Configuration";@@ -39,4 +42,11 @@ providePlanSQLCheckContext({plan,selectedSpec: selectedSpec as Ref<Plan_Spec>,});++const specHasRelease = computed(() => {+ return (+ selectedSpec.value.config.case === "changeDatabaseConfig" &&+ isValidReleaseName(selectedSpec.value.config.value.release)+ );+});</script>diff --git a/frontend/src/components/Plan/logic/usePlanCheckStatus.ts b/frontend/src/components/Plan/logic/usePlanCheckStatus.tsindex 94edeea041..dcf9d4c551 100644--- a/frontend/src/components/Plan/logic/usePlanCheckStatus.ts+++ b/frontend/src/components/Plan/logic/usePlanCheckStatus.ts@@ -35,7 +35,8 @@ export const usePlanCheckStatus = (return PlanCheckRun_Result_Status.SUCCESS;}- return PlanCheckRun_Result_Status.STATUS_UNSPECIFIED;+ // Default to SUCCESS if no errors or warnings.+ return PlanCheckRun_Result_Status.SUCCESS;});const statusSummary = computed<PlanCheckStatusSummary>(() => {