Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
Revert the idea of having stepList
天舟b4373aa9c945
diff --git a/frontend/src/miragejs/seeds/index.ts b/frontend/src/miragejs/seeds/index.tsindex d2c3cc9f2f..b1c660049f 100644--- a/frontend/src/miragejs/seeds/index.ts+++ b/frontend/src/miragejs/seeds/index.ts@@ -77,7 +77,6 @@ const workspacesSeeder = (server: any) => {name: "Request",type: "SIMPLE",status: "PENDING",- stepList: [],},],workspace: workspace1,@@ -119,12 +118,6 @@ const workspacesSeeder = (server: any) => {name: "Request data source",type: "SIMPLE",status: "PENDING",- stepList: [- {- name: "Database name",- type: "DATABASE",- },- ],},],payload: {@@ -299,12 +292,6 @@ const fillTaskAndStageStatus = (run: () => {},},status: "PENDING",- stepList: [- {- name: "Apply to " + environmentList[0].name,- type: "EXECUTION",- },- ],},{id: "2",@@ -316,12 +303,6 @@ const fillTaskAndStageStatus = (run: () => {},},status: "PENDING",- stepList: [- {- name: "Apply to " + environmentList[1].name,- type: "EXECUTION",- },- ],},],};@@ -339,12 +320,6 @@ const fillTaskAndStageStatus = (run: () => {},},status: "DONE",- stepList: [- {- name: "Apply to " + environmentList[0].name,- type: "EXECUTION",- },- ],},{id: "2",@@ -356,12 +331,6 @@ const fillTaskAndStageStatus = (run: () => {},},status: "DONE",- stepList: [- {- name: "Apply to " + environmentList[1].name,- type: "EXECUTION",- },- ],},{id: "3",@@ -373,12 +342,6 @@ const fillTaskAndStageStatus = (run: () => {},},status: "RUNNING",- stepList: [- {- name: "Apply to " + environmentList[2].name,- type: "EXECUTION",- },- ],},{id: "4",@@ -390,12 +353,6 @@ const fillTaskAndStageStatus = (run: () => {},},status: "PENDING",- stepList: [- {- name: "Apply to " + environmentList[3].name,- type: "EXECUTION",- },- ],},],};@@ -413,12 +370,6 @@ const fillTaskAndStageStatus = (run: () => {},},status: "DONE",- stepList: [- {- name: "Apply to " + environmentList[0].name,- type: "EXECUTION",- },- ],},{id: "2",@@ -430,12 +381,6 @@ const fillTaskAndStageStatus = (run: () => {},},status: "SKIPPED",- stepList: [- {- name: "Apply to " + environmentList[1].name,- type: "EXECUTION",- },- ],},{id: "3",@@ -447,12 +392,6 @@ const fillTaskAndStageStatus = (run: () => {},},status: "DONE",- stepList: [- {- name: "Apply to " + environmentList[2].name,- type: "EXECUTION",- },- ],},{id: "4",@@ -464,12 +403,6 @@ const fillTaskAndStageStatus = (run: () => {},},status: "DONE",- stepList: [- {- name: "Apply to " + environmentList[3].name,- type: "EXECUTION",- },- ],},],};@@ -487,12 +420,6 @@ const fillTaskAndStageStatus = (run: () => {},},status: "DONE",- stepList: [- {- name: "Apply to " + environmentList[0].name,- type: "EXECUTION",- },- ],},{id: "2",@@ -504,12 +431,6 @@ const fillTaskAndStageStatus = (run: () => {},},status: "FAILED",- stepList: [- {- name: "Apply to " + environmentList[1].name,- type: "EXECUTION",- },- ],},{id: "3",@@ -521,12 +442,6 @@ const fillTaskAndStageStatus = (run: () => {},},status: "PENDING",- stepList: [- {- name: "Apply to " + environmentList[2].name,- type: "EXECUTION",- },- ],},{id: "4",@@ -538,12 +453,6 @@ const fillTaskAndStageStatus = (run: () => {},},status: "PENDING",- stepList: [- {- name: "Apply to " + environmentList[3].name,- type: "EXECUTION",- },- ],},],};@@ -561,12 +470,6 @@ const fillTaskAndStageStatus = (run: () => {},},status: "DONE",- stepList: [- {- name: "Apply to " + environmentList[0].name,- type: "EXECUTION",- },- ],},{id: "2",@@ -578,12 +481,6 @@ const fillTaskAndStageStatus = (run: () => {},},status: "SKIPPED",- stepList: [- {- name: "Apply to " + environmentList[1].name,- type: "EXECUTION",- },- ],},{id: "3",@@ -595,12 +492,6 @@ const fillTaskAndStageStatus = (run: () => {},},status: "DONE",- stepList: [- {- name: "Apply to " + environmentList[2].name,- type: "EXECUTION",- },- ],},{id: "4",@@ -612,12 +503,6 @@ const fillTaskAndStageStatus = (run: () => {},},status: "PENDING",- stepList: [- {- name: "Apply to " + environmentList[3].name,- type: "EXECUTION",- },- ],},],};diff --git a/frontend/src/plugins/task/DatabaseRequestTemplate.ts b/frontend/src/plugins/task/DatabaseRequestTemplate.tsindex 9843342b5f..4bf9d5252d 100644--- a/frontend/src/plugins/task/DatabaseRequestTemplate.ts+++ b/frontend/src/plugins/task/DatabaseRequestTemplate.ts@@ -36,12 +36,6 @@ const template: TaskTemplate = {name: "Request database",type: "SIMPLE",status: "PENDING",- stepList: [- {- name: "Provide database",- type: "DATABASE",- },- ],},],creatorId: ctx.currentUser.id,diff --git a/frontend/src/plugins/task/DatabaseSchemaUpdateTemplate.ts b/frontend/src/plugins/task/DatabaseSchemaUpdateTemplate.tsindex 73193cecd8..1b20e94391 100644--- a/frontend/src/plugins/task/DatabaseSchemaUpdateTemplate.ts+++ b/frontend/src/plugins/task/DatabaseSchemaUpdateTemplate.ts@@ -24,12 +24,6 @@ const template: TaskTemplate = {name: env.name,type: "ENVIRONMENT",status: "PENDING",- stepList: [- {- name: "Apply to " + env.name,- type: "EXECUTION",- },- ],runnable: {auto: true,run: () => {diff --git a/frontend/src/plugins/task/template.ts b/frontend/src/plugins/task/template.tsindex f7a6dc40fd..d937b98c6e 100644--- a/frontend/src/plugins/task/template.ts+++ b/frontend/src/plugins/task/template.ts@@ -24,7 +24,6 @@ const DEFAULT_TEMPLATE = {name: "Request",type: "SIMPLE",status: "PENDING",- stepList: [],},],creatorId: ctx.currentUser.id,diff --git a/frontend/src/types/bytebase.ts b/frontend/src/types/bytebase.tsindex 999e5c8eec..17d35506d8 100644--- a/frontend/src/types/bytebase.ts+++ b/frontend/src/types/bytebase.ts@@ -261,18 +261,11 @@ export type StageRunnable = {run: () => void;};-export type StageStep = {- name: string;- type: "EXECUTION" | "DATABASE";- payload?: Execution | DatabaseId;-};-export type Stage = {id: StageId;name: string;type: StageType;status: StageStatus;- stepList: StageStep[];environmentId?: EnvironmentId;runnable?: StageRunnable;};