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: rename spec list (#16259)
boojack8accbb402a05
diff --git a/frontend/src/components/IssueV1/components/HeaderSection/Actions/create/CreateButton.vue b/frontend/src/components/IssueV1/components/HeaderSection/Actions/create/CreateButton.vueindex 19a2a7ece5..631f837c91 100644--- a/frontend/src/components/IssueV1/components/HeaderSection/Actions/create/CreateButton.vue+++ b/frontend/src/components/IssueV1/components/HeaderSection/Actions/create/CreateButton.vue@@ -73,7 +73,11 @@ import {} from "@/grpcweb";import { emitWindowEvent } from "@/plugins";import { PROJECT_V1_ROUTE_ISSUE_DETAIL } from "@/router/dashboard/projectV1";-import { useDatabaseV1Store, useSheetV1Store, useCurrentProjectV1 } from "@/store";+import {+ useDatabaseV1Store,+ useSheetV1Store,+ useCurrentProjectV1,+} from "@/store";import { dialectOfEngineV1, languageOfEngineV1 } from "@/types";import { Issue, Issue_Type } from "@/types/proto/v1/issue_service";import type { Plan_ExportDataConfig } from "@/types/proto/v1/plan_service";@@ -125,9 +129,7 @@ const issueCreateErrorList = computed(() => {}} else {if (issue.value.planEntity) {- if (- !issue.value.planEntity.specs.every((spec) => isValidSpec(spec))- ) {+ if (!issue.value.planEntity.specs.every((spec) => isValidSpec(spec))) {errorList.push("Missing SQL statement in some specs");}}@@ -191,16 +193,14 @@ const doCreateIssue = async () => {// Create sheets for spec configs and update their resource names.const createSheets = async () => {- const flattenSpecList = issue.value.planEntity?.specs ?? [];-const configWithSheetList: (| Plan_ChangeDatabaseConfig| Plan_ExportDataConfig)[] = [];const pendingCreateSheetMap = new Map<string, Sheet>();- for (let i = 0; i < flattenSpecList.length; i++) {- const spec = flattenSpecList[i];+ const specList = issue.value.planEntity?.specs ?? [];+ for (const spec of specList) {const config = spec.changeDatabaseConfig || spec.exportDataConfig;if (!config) continue;configWithSheetList.push(config);diff --git a/frontend/src/components/Release/ReleaseDetail/NavBar/ApplyToDatabasePanel.vue b/frontend/src/components/Release/ReleaseDetail/NavBar/ApplyToDatabasePanel.vueindex 95cd188adb..f033e00b58 100644--- a/frontend/src/components/Release/ReleaseDetail/NavBar/ApplyToDatabasePanel.vue+++ b/frontend/src/components/Release/ReleaseDetail/NavBar/ApplyToDatabasePanel.vue@@ -144,7 +144,7 @@ const stepList = computed(() => [{ title: t("common.preview") },]);-const flattenSpecList = computed((): Plan_Spec[] => {+const specList = computed((): Plan_Spec[] => {return state.previewPlanResult?.plan?.specs || [];});@@ -164,7 +164,7 @@ const nextButtonErrors = computed(() => {if (!state.previewPlanResult) {errors.push("Failed to preview plan");}- if (flattenSpecList.value.length === 0) {+ if (specList.value.length === 0) {errors.push("No plan to apply");}}diff --git a/frontend/src/components/Release/ReleaseDetail/NavBar/PreviewPlanDetail.vue b/frontend/src/components/Release/ReleaseDetail/NavBar/PreviewPlanDetail.vueindex d47327fdc5..acd8f2cced 100644--- a/frontend/src/components/Release/ReleaseDetail/NavBar/PreviewPlanDetail.vue+++ b/frontend/src/components/Release/ReleaseDetail/NavBar/PreviewPlanDetail.vue@@ -9,7 +9,7 @@{{ $t("release.tasks-to-apply") }}</p><div- v-for="spec in flattenSpecList"+ v-for="spec in specList":key="spec.id"class="max-w-52 flex flex-row items-center flex-wrap border px-2 py-1 rounded-md">@@ -34,7 +34,7 @@</span></div></div>- <p v-if="flattenSpecList.length === 0" class="text-gray-400 italic">+ <p v-if="specList.length === 0" class="text-gray-400 italic">{{ $t("release.no-tasks-to-apply.self") }}</p></div>@@ -148,7 +148,7 @@ const databaseStore = useDatabaseV1Store();const databaseGroupStore = useDBGroupStore();-const flattenSpecList = computed((): Plan_Spec[] => {+const specList = computed((): Plan_Spec[] => {return props.previewPlanResult.plan?.specs || [];});@@ -173,7 +173,7 @@ const targetDatabases = computed(() => {const shouldShowAppliedAlert = computed(() => {return (props.release.files.length * targetDatabases.value.length >- flattenSpecList.value.length+ specList.value.length);});