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: use dbGroup.matchedDatabases instead of fetching them (#12318)
boojack61a8c8f0cb3e
diff --git a/frontend/src/components/DatabaseGroup/DatabaseGroupPanel.vue b/frontend/src/components/DatabaseGroup/DatabaseGroupPanel.vueindex 43e53b01d5..71a293edb5 100644--- a/frontend/src/components/DatabaseGroup/DatabaseGroupPanel.vue+++ b/frontend/src/components/DatabaseGroup/DatabaseGroupPanel.vue@@ -49,15 +49,10 @@ import {PROJECT_V1_ROUTE_DATABASE_GROUP_DETAIL,} from "@/router/dashboard/projectV1";import { pushNotification, useDBGroupStore } from "@/store";-import type {- ComposedDatabaseGroup,- ComposedProject,-} from "@/types";+import type { ComposedDatabaseGroup, ComposedProject } from "@/types";import { ParsedExpr } from "@/types/proto/google/api/expr/v1alpha1/syntax";import { Expr } from "@/types/proto/google/type/expr";-import type {- DatabaseGroup,-} from "@/types/proto/v1/project_service";+import type { DatabaseGroup } from "@/types/proto/v1/project_service";import { batchConvertParsedExprToCELString } from "@/utils";import DatabaseGroupForm from "./DatabaseGroupForm.vue";diff --git a/frontend/src/components/IssueV1/logic/plan.ts b/frontend/src/components/IssueV1/logic/plan.tsindex a14fb8e982..aed6c678e3 100644--- a/frontend/src/components/IssueV1/logic/plan.ts+++ b/frontend/src/components/IssueV1/logic/plan.ts@@ -110,13 +110,8 @@ export const databaseEngineForSpec = async (if (extractDatabaseGroupName(target)) {const dbGroupStore = useDBGroupStore();const dbGroup = await dbGroupStore.getOrFetchDBGroupByName(target);- const { matchedDatabaseList } =- await dbGroupStore.fetchDatabaseGroupMatchList({- projectName: project.name,- expr: dbGroup.simpleExpr,- });// Might be flaky: use the first database in the db group- const dbName = head(matchedDatabaseList)?.name;+ const dbName = head(dbGroup.matchedDatabases)?.name;if (dbName) {const db = await useDatabaseV1Store().getOrFetchDatabaseByName(dbName,