Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

Remove the stage patch logic in Issue.

天舟7d962d6d71ba
diff --git a/frontend/src/miragejs/routes/issue.js b/frontend/src/miragejs/routes/issue.js
index 16f727bcb6..97f5712a77 100644
--- a/frontend/src/miragejs/routes/issue.js
+++ b/frontend/src/miragejs/routes/issue.js
@@ -190,19 +190,6 @@ export default function configureIssue(route) {
}
}
- if (attrs.stage !== undefined) {
- const stage = issue.stageList.find((item) => item.id == attrs.stage.id);
- if (stage) {
- changeList.push({
- fieldId: [IssueBuiltinFieldId.STAGE, stage.id].join("."),
- oldValue: stage.status,
- newValue: attrs.stage.status,
- });
- stage.status = attrs.stage.status;
- attrs.stageList = issue.stageList;
- }
- }
-
if (attrs.subscriberIdList !== undefined) {
if (issue.subscriberIdList != attrs.subscriberIdList) {
changeList.push({
diff --git a/frontend/src/plugins/types.ts b/frontend/src/plugins/types.ts
index 34d704f45c..058cf5bd4e 100644
--- a/frontend/src/plugins/types.ts
+++ b/frontend/src/plugins/types.ts
@@ -15,10 +15,9 @@ export enum IssueBuiltinFieldId {
INSTANCE = "7",
DATABASE = "8",
DATA_SOURCE = "9",
- STAGE = "10", // The full id is concatenated with the actual stage id e.g. "8".<<stage id>>
- SQL = "11",
- ROLLBACK_SQL = "12",
- SUBSCRIBER_LIST = "13",
+ SQL = "10",
+ ROLLBACK_SQL = "11",
+ SUBSCRIBER_LIST = "12",
}
export const INPUT_CUSTOM_FIELD_ID_BEGIN = "100";
diff --git a/frontend/src/views/IssueActivityPanel.vue b/frontend/src/views/IssueActivityPanel.vue
index 31535891a9..528e33d54e 100644
--- a/frontend/src/views/IssueActivityPanel.vue
+++ b/frontend/src/views/IssueActivityPanel.vue
@@ -537,13 +537,6 @@ export default {
}
} else if (update.fieldId == IssueBuiltinFieldId.DESCRIPTION) {
name = "description";
- } else if (
- update.fieldId.split(".")[0] == IssueBuiltinFieldId.STAGE
- ) {
- const stageId = update.fieldId.split(".")[1];
- name = stageName(props.issue, stageId);
- oldValue = update.oldValue;
- newValue = update.newValue;
} else if (update.fieldId == IssueBuiltinFieldId.SQL) {
name = "SQL";
oldValue = update.oldValue;