Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
After fetching a particular issue, we also update the instance/database store with the fetched instance/database
天舟0299a23f79ac
diff --git a/frontend/src/store/modules/issue.ts b/frontend/src/store/modules/issue.tsindex 7aa706beee..51143723ea 100644--- a/frontend/src/store/modules/issue.ts+++ b/frontend/src/store/modules/issue.ts@@ -122,6 +122,35 @@ const actions = {issueId,issue,});++ // It might be the first time the particular instance/database objects are returned,+ // so that we should also update instance/database store, otherwise, we may get+ // unknown instance/database when navigating to other UI from the issue detail page+ // since other UIs are getting instance/database by id from the store.+ // An example is if user navigates to an issue and do a rollback, the constructed rollback+ // issue requires the instance/database exist in the store.+ for (const stage of issue.pipeline.stageList) {+ for (const task of stage.taskList) {+ commit(+ "instance/setInstanceById",+ {+ instanceId: task.instance.id,+ instance: task.instance,+ },+ { root: true }+ );++ if (task.database) {+ commit(+ "database/upsertDatabaseList",+ {+ databaseList: [task.database],+ },+ { root: true }+ );+ }+ }+ }return issue;},