Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
Remove issueListByUser since we consume the result directly
天舟d14b107de314
diff --git a/frontend/src/store/modules/issue.ts b/frontend/src/store/modules/issue.tsindex 7afa48e3f8..5758fbc4f3 100644--- a/frontend/src/store/modules/issue.ts+++ b/frontend/src/store/modules/issue.ts@@ -58,15 +58,10 @@ function convert(}const state: () => IssueState = () => ({- issueListByUser: new Map(),issueById: new Map(),});const getters = {- issueListByUser: (state: IssueState) => (userId: PrincipalId) => {- return state.issueListByUser.get(userId) || [];- },-issueById:(state: IssueState) =>(issueId: IssueId): Issue => {@@ -88,7 +83,7 @@ const actions = {return convert(issue, data.included, rootGetters);});- commit("setIssueListForUser", { userId, issueList });+ // The caller consumes directly, so we don't store it.return issueList;},@@ -197,19 +192,6 @@ const actions = {};const mutations = {- setIssueListForUser(- state: IssueState,- {- userId,- issueList,- }: {- userId: PrincipalId;- issueList: Issue[];- }- ) {- state.issueListByUser.set(userId, issueList);- },-setIssueById(state: IssueState,{diff --git a/frontend/src/types/store.ts b/frontend/src/types/store.tsindex 6f3cc3074c..2ff78ca066 100644--- a/frontend/src/types/store.ts+++ b/frontend/src/types/store.ts@@ -67,10 +67,6 @@ export interface MessageState {}export interface IssueState {- // [NOTE] This is only used by the issue list view. We don't- // update the entry here if any issue is changed (the updated issue only gets updated in issueById).- // Instead, we always fetch the list every time we display the issue list view.- issueListByUser: Map<PrincipalId, Issue[]>;issueById: Map<IssueId, Issue>;}