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 (#15425)
ecmadaoabf02369cf52
diff --git a/frontend/src/components/Release/ReleaseDetail/NavBar/PreviewPlanDetail.vue b/frontend/src/components/Release/ReleaseDetail/NavBar/PreviewPlanDetail.vueindex 05ab5fc853..5d58662830 100644--- a/frontend/src/components/Release/ReleaseDetail/NavBar/PreviewPlanDetail.vue+++ b/frontend/src/components/Release/ReleaseDetail/NavBar/PreviewPlanDetail.vue@@ -15,7 +15,7 @@><DatabaseViewclass="text-sm"- :database="databaseForPlanSpec(spec)"+ :database="spec.changeDatabaseConfig!.target":link="false":show-not-found="true"/>@@ -55,7 +55,7 @@<td><DatabaseViewclass="text-sm"- :database="databaseStore.getDatabaseByName(temp.database)"+ :database="temp.database":link="false":show-not-found="true"/>@@ -97,7 +97,7 @@<td><DatabaseViewclass="text-sm"- :database="databaseStore.getDatabaseByName(temp.database)"+ :database="temp.database":link="false":show-not-found="true"/>@@ -126,7 +126,7 @@ import { computed } from "vue";import type { DatabaseSelectState } from "@/components/DatabaseAndGroupSelector";import DatabaseView from "@/components/v2/Model/DatabaseView.vue";import { useDatabaseV1Store, useDBGroupStore } from "@/store";-import type { ComposedDatabase, ComposedRelease } from "@/types";+import type { ComposedRelease } from "@/types";import type {Plan_Spec,PreviewPlanResponse,@@ -176,10 +176,6 @@ const shouldShowAppliedAlert = computed(() => {);});-const databaseForPlanSpec = (spec: Plan_Spec): ComposedDatabase => {- return databaseStore.getDatabaseByName(spec.changeDatabaseConfig!.target);-};-const specReleaseVersion = (spec: Plan_Spec): string => {return spec.changeDatabaseConfig!.schemaVersion;};diff --git a/frontend/src/components/v2/Model/DatabaseView.vue b/frontend/src/components/v2/Model/DatabaseView.vueindex 74d8418f05..2410ce8c51 100644--- a/frontend/src/components/v2/Model/DatabaseView.vue+++ b/frontend/src/components/v2/Model/DatabaseView.vue@@ -25,10 +25,12 @@<script lang="ts" setup>import { FeatureBadge } from "@/components/FeatureGuard";import { DatabaseV1Name, EnvironmentV1Name } from "@/components/v2";-import type { ComposedDatabase } from "@/types";+import { useDatabaseV1ByName } from "@/store";import { InstanceV1EngineIcon } from "./Instance";-defineProps<{- database: ComposedDatabase;+const props = defineProps<{+ database: string;}>();++const { database } = useDatabaseV1ByName(props.database);</script>diff --git a/frontend/src/types/proto/google/protobuf/descriptor.ts b/frontend/src/types/proto/google/protobuf/descriptor.tsindex 2fdf22f5e2..ae3f877dc7 100644--- a/frontend/src/types/proto/google/protobuf/descriptor.ts+++ b/frontend/src/types/proto/google/protobuf/descriptor.ts@@ -36,7 +36,7 @@ export enum Edition {EDITION_2024 = "EDITION_2024",/*** EDITION_1_TEST_ONLY - Placeholder editions for testing feature resolution. These should not be- * used or relied on outside of tests.+ * used or relyed on outside of tests.*/EDITION_1_TEST_ONLY = "EDITION_1_TEST_ONLY",EDITION_2_TEST_ONLY = "EDITION_2_TEST_ONLY",@@ -1093,13 +1093,12 @@ export interface MessageOptions {export interface FieldOptions {/**- * NOTE: ctype is deprecated. Use `features.(pb.cpp).string_type` instead.* The ctype option instructs the C++ code generator to use a different* representation of the field than it normally would. See the specific* options below. This option is only implemented to support use of* [ctype=CORD] and [ctype=STRING] (the default) on non-repeated fields of- * type "bytes" in the open source release.- * TODO: make ctype actually deprecated.+ * type "bytes" in the open source release -- sorry, we'll try to include+ * other types in a future version!*/ctype?:| FieldOptions_CType@@ -1315,7 +1314,11 @@ export function fieldOptions_JSTypeToNumber(object: FieldOptions_JSType): number}}-/** If set to RETENTION_SOURCE, the option will be omitted from the binary. */+/**+ * If set to RETENTION_SOURCE, the option will be omitted from the binary.+ * Note: as of January 2023, support for this is in progress and does not yet+ * have an effect (b/264593489).+ */export enum FieldOptions_OptionRetention {RETENTION_UNKNOWN = "RETENTION_UNKNOWN",RETENTION_RUNTIME = "RETENTION_RUNTIME",@@ -1372,7 +1375,8 @@ export function fieldOptions_OptionRetentionToNumber(object: FieldOptions_Option/*** This indicates the types of entities that the field may apply to when used* as an option. If it is unset, then the field may be freely used as an- * option on any kind of entity.+ * option on any kind of entity. Note: as of January 2023, support for this is+ * in progress and does not yet have an effect (b/264593489).*/export enum FieldOptions_OptionTargetType {TARGET_TYPE_UNKNOWN = "TARGET_TYPE_UNKNOWN",