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: add all user in the cache (#15208)
ecmadaoc7657c7303ed
diff --git a/frontend/src/store/modules/user.ts b/frontend/src/store/modules/user.tsindex e55abf0e5b..db38c955ed 100644--- a/frontend/src/store/modules/user.ts+++ b/frontend/src/store/modules/user.ts@@ -14,7 +14,10 @@ import { userNamePrefix, getUserEmailFromIdentifier } from "./v1/common";import { usePermissionStore } from "./v1/permission";export const useUserStore = defineStore("user", () => {- const userMapByName = ref<Map<string, User>>(new Map());+ const allUser = allUsersUser();+ const userMapByName = ref<Map<string, User>>(+ new Map([[allUser.name, allUser]])+ );const setUser = (user: User) => {userMapByName.value.set(user.name, user);@@ -107,9 +110,6 @@ export const useUserStore = defineStore("user", () => {return getUserByEmail(getUserEmailFromIdentifier(identifier));};const getUserByEmail = (email: string) => {- if (email === ALL_USERS_USER_EMAIL) {- return allUsersUser();- }return [...userMapByName.value.values()].find((user) => user.email === email);