Skip to content

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

Remove bb.task.unknown and bb.stage.unknown

天舟3956c2826503
diff --git a/frontend/src/miragejs/factories/stage.js b/frontend/src/miragejs/factories/stage.js
index 43d3f03d9d..7d12723c75 100644
--- a/frontend/src/miragejs/factories/stage.js
+++ b/frontend/src/miragejs/factories/stage.js
@@ -20,7 +20,7 @@ export default {
return faker.fake("{{lorem.sentence}}");
},
type() {
- return "bb.stage.unknown";
+ return "bb.stage.general";
},
databaseId() {
return UNKNOWN_ID;
diff --git a/frontend/src/miragejs/factories/task.js b/frontend/src/miragejs/factories/task.js
index 6ee6dc3959..fe2289f709 100644
--- a/frontend/src/miragejs/factories/task.js
+++ b/frontend/src/miragejs/factories/task.js
@@ -20,7 +20,7 @@ export default {
return faker.fake("{{lorem.sentence}}");
},
type() {
- return "bb.task.unknown";
+ return "bb.task.general";
},
status() {
return "PENDING";
diff --git a/frontend/src/types/common.ts b/frontend/src/types/common.ts
index eaec362c48..d70bd7704d 100644
--- a/frontend/src/types/common.ts
+++ b/frontend/src/types/common.ts
@@ -242,7 +242,7 @@ export const unknown = (
updater: UNKNOWN_PRINCIPAL,
updatedTs: 0,
name: "<<Unknown stage>>",
- type: "bb.stage.unknown",
+ type: "bb.stage.general",
environment: UNKNOWN_ENVIRONMENT,
taskList: [],
};
@@ -256,7 +256,7 @@ export const unknown = (
updater: UNKNOWN_PRINCIPAL,
updatedTs: 0,
name: "<<Unknown task>>",
- type: "bb.task.unknown",
+ type: "bb.task.general",
status: "DONE",
when: "ON_SUCCESS",
database: UNKNOWN_DATABASE,
@@ -480,7 +480,7 @@ export const empty = (
updater: EMPTY_PRINCIPAL,
updatedTs: 0,
name: "",
- type: "bb.stage.unknown",
+ type: "bb.stage.general",
environment: EMPTY_ENVIRONMENT,
taskList: [],
};
@@ -494,7 +494,7 @@ export const empty = (
updater: EMPTY_PRINCIPAL,
updatedTs: 0,
name: "",
- type: "bb.task.unknown",
+ type: "bb.task.general",
status: "DONE",
when: "ON_SUCCESS",
database: EMPTY_DATABASE,
diff --git a/frontend/src/types/pipeline.ts b/frontend/src/types/pipeline.ts
index 22606c2705..16953d33ef 100644
--- a/frontend/src/types/pipeline.ts
+++ b/frontend/src/types/pipeline.ts
@@ -142,7 +142,6 @@ export type PipelineStatusPatch = {
// Stage
export type StageType =
- | "bb.stage.unknown"
| "bb.stage.general"
| "bb.stage.final"
| "bb.stage.transition"
@@ -189,7 +188,6 @@ export type StageNew = {
// Task
export type TaskType =
- | "bb.task.unknown"
| "bb.task.general"
| "bb.task.approve"
| "bb.task.database.schema.update";