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 databases in stages (#15469)
ecmadaoedfe48fa746f
diff --git a/frontend/src/store/modules/v1/experimental-issue.ts b/frontend/src/store/modules/v1/experimental-issue.tsindex f18e11a5a3..1310ff6b8d 100644--- a/frontend/src/store/modules/v1/experimental-issue.ts+++ b/frontend/src/store/modules/v1/experimental-issue.ts@@ -5,7 +5,11 @@ import {planServiceClient,rolloutServiceClient,} from "@/grpcweb";-import { useProjectV1Store, useUserStore } from "@/store";+import {+ useProjectV1Store,+ useUserStore,+ batchGetOrFetchDatabases,+} from "@/store";import type { ComposedIssue, ComposedProject, ComposedTaskRun } from "@/types";import {emptyIssue,@@ -76,6 +80,12 @@ export const composeIssue = async (issue.rolloutEntity = await rolloutServiceClient.getRollout({name: issue.rollout,});+ await batchGetOrFetchDatabases(+ issue.rolloutEntity.stages.reduce((databaseList, stage) => {+ databaseList.push(...stage.tasks.map((task) => task.target));+ return databaseList;+ }, [] as string[])+ );}if (hasProjectPermissionV2(projectEntity, "bb.taskRuns.list")) {const { taskRuns } = await rolloutServiceClient.listTaskRuns({