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: legacy project API compatibility (#5989)
Liu Jiba0e9bce3ee5
diff --git a/frontend/src/components/ProvideDashboardContext.vue b/frontend/src/components/ProvideDashboardContext.vueindex ee8e356fb5..6ad089821c 100644--- a/frontend/src/components/ProvideDashboardContext.vue+++ b/frontend/src/components/ProvideDashboardContext.vue@@ -13,6 +13,7 @@ import {useProjectStore,useDebugStore,useUserStore,+ useCurrentUser,} from "@/store";import { defineComponent } from "vue";import { DEFAULT_PROJECT_ID } from "../types";@@ -20,6 +21,8 @@ import { DEFAULT_PROJECT_ID } from "../types";export default defineComponent({name: "ProvideDashboardContext",async setup() {+ const currentUser = useCurrentUser();+await Promise.all([useSettingStore().fetchSetting(),// Fetch so MemberSelect can have the data.@@ -35,6 +38,10 @@ export default defineComponent({useEnvironmentStore().fetchEnvironmentList(),// The default project hosts databases not explicitly assigned to other users project.useProjectStore().fetchProjectById(DEFAULT_PROJECT_ID),+ // For legacy project API support. Remove this after shipping to project v1.+ useProjectStore().fetchProjectListByUser({+ userId: currentUser.value.id,+ }),useUIStateStore().restoreState(),useDebugStore().fetchDebug(),]);