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 issue database (#15855)
ecmadao2f063872455a
diff --git a/frontend/src/store/modules/v1/experimental-issue.ts b/frontend/src/store/modules/v1/experimental-issue.tsindex 286e699c3d..fa8e4b4880 100644--- a/frontend/src/store/modules/v1/experimental-issue.ts+++ b/frontend/src/store/modules/v1/experimental-issue.ts@@ -5,7 +5,12 @@ import {planServiceClient,rolloutServiceClient,} from "@/grpcweb";-import { useProjectV1Store, useUserStore, batchGetOrFetchUsers } from "@/store";+import {+ useProjectV1Store,+ useUserStore,+ batchGetOrFetchUsers,+ batchGetOrFetchDatabases,+} from "@/store";import type { ComposedIssue, ComposedProject, ComposedTaskRun } from "@/types";import {emptyIssue,@@ -59,6 +64,7 @@ export const composeIssue = async (});issue.planEntity = plan;}+if (hasProjectPermissionV2(projectEntity, "bb.planCheckRuns.list")) {// Only show the latest plan check runs.const { planCheckRuns } = await planServiceClient.listPlanCheckRuns({@@ -73,7 +79,20 @@ export const composeIssue = async (issue.rolloutEntity = await rolloutServiceClient.getRollout({name: issue.rollout,});++ const databaseList = issue.rolloutEntity.stages.reduce(+ (databaseList, stage) => {+ databaseList.push(...stage.tasks.map((task) => task.target));+ return databaseList;+ },+ [] as string[]+ );+ // TODO(ed): temporary solution to ensure the databases.+ // For normal issues, users can fetch the databases per page in the task cards.+ // We can change to the BatchGetDatabases API later.+ await batchGetOrFetchDatabases(databaseList.slice(0, 50));}+if (hasProjectPermissionV2(projectEntity, "bb.taskRuns.list")) {const { taskRuns } = await rolloutServiceClient.listTaskRuns({parent: `${issue.rollout}/stages/-/tasks/-`,