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: fetch database (#15540)
ecmadao2b9733449b25
diff --git a/frontend/src/store/modules/v1/plan.ts b/frontend/src/store/modules/v1/plan.tsindex e6c0f424bb..44c010b29f 100644--- a/frontend/src/store/modules/v1/plan.ts+++ b/frontend/src/store/modules/v1/plan.ts@@ -18,6 +18,7 @@ import {hasProjectPermissionV2,type SearchParams,} from "@/utils";+import { batchGetOrFetchDatabases } from "./database";import { useProjectV1Store } from "./project";export interface PlanFind {@@ -90,6 +91,12 @@ export const composePlan = async (rawPlan: Plan): Promise<ComposedPlan> => {creatorEntity,};+ await batchGetOrFetchDatabases(+ plan.steps+ .flatMap((step) => step.specs)+ .flatMap((spec) => spec.changeDatabaseConfig?.target ?? "")+ );+if (hasProjectPermissionV2(projectEntity, "bb.planCheckRuns.list")) {// Only show the latest plan check runs.// TODO(steven): maybe we need to show all plan check runs on a separate page later.diff --git a/frontend/src/views/DatabaseDetail/ChangelogDetail.vue b/frontend/src/views/DatabaseDetail/ChangelogDetail.vueindex c21f9e56ff..13ceec9142 100644--- a/frontend/src/views/DatabaseDetail/ChangelogDetail.vue+++ b/frontend/src/views/DatabaseDetail/ChangelogDetail.vue@@ -16,10 +16,14 @@</NBreadcrumbItem></NBreadcrumb><ChangelogDetailView+ v-if="ready":instance="instance":database="database.name":changelog-id="changelogId"/>+ <div v-else class="flex justify-center items-center py-10">+ <BBSpin />+ </div></template><script lang="ts" setup>@@ -38,5 +42,5 @@ const props = defineProps<{const router = useRouter();-const { database } = useDatabaseV1ByName(props.database);+const { database, ready } = useDatabaseV1ByName(props.database);</script>