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(frontend): link to just-in-time created db (#9227)
Liu Jic45775d5eee3
diff --git a/frontend/src/components/IssueV1/components/StageSection/StageInfo/DatabaseInfo.vue b/frontend/src/components/IssueV1/components/StageSection/StageInfo/DatabaseInfo.vueindex 9f270b841b..f4863754ea 100644--- a/frontend/src/components/IssueV1/components/StageSection/StageInfo/DatabaseInfo.vue+++ b/frontend/src/components/IssueV1/components/StageSection/StageInfo/DatabaseInfo.vue@@ -61,6 +61,7 @@</template><script lang="ts" setup>+import { computedAsync } from "@vueuse/core";import { computed } from "vue";import { SQLEditorButtonV1 } from "@/components/DatabaseDetail";import {@@ -120,11 +121,19 @@ const databaseCreationStatus = computed((): DatabaseCreationStatus => {return "EXISTED";});-const database = computed(() => {+const database = computedAsync(async () => {const maybeExistedDatabase = coreDatabaseInfo.value;if (maybeExistedDatabase.uid !== String(UNKNOWN_ID)) {return maybeExistedDatabase;}+ if (databaseCreationStatus.value === "CREATED") {+ const name = coreDatabaseInfo.value.name;+ const maybeCreatedDatabase =+ await useDatabaseV1Store().getOrFetchDatabaseByName(name);+ if (maybeCreatedDatabase.uid !== String(UNKNOWN_ID)) {+ return maybeCreatedDatabase;+ }+ }return undefined;-});+}, undefined);</script>