Skip to content

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

chore: remove table name factor (#6927)

boojack6edf90ae9245
diff --git a/frontend/src/components/CustomApproval/Settings/components/common/ExprEditor/factor.ts b/frontend/src/components/CustomApproval/Settings/components/common/ExprEditor/factor.ts
index b114d96492..3b44977e56 100644
--- a/frontend/src/components/CustomApproval/Settings/components/common/ExprEditor/factor.ts
+++ b/frontend/src/components/CustomApproval/Settings/components/common/ExprEditor/factor.ts
@@ -14,7 +14,6 @@ export const StringFactorList = [
"environment_id", // using `environment.resource_id`
"project_id", // using `project.resource_id`
"database_name",
- "table_name",
"db_engine",
"sql_type",
] as const;
@@ -24,24 +23,21 @@ export const FactorList = {
without(
[...HighLevelFactorList, ...StringFactorList],
"expiration_days",
- "export_rows",
- "table_name"
+ "export_rows"
)
),
DML: uniq(
without(
[...HighLevelFactorList, ...NumberFactorList, ...StringFactorList],
"expiration_days",
- "export_rows",
- "table_name"
+ "export_rows"
)
),
CreateDatabase: without(
[...HighLevelFactorList, ...StringFactorList],
"sql_type",
"expiration_days",
- "export_rows",
- "table_name"
+ "export_rows"
),
RequestQuery: uniq(
without(
diff --git a/frontend/src/plugins/cel/types/factor.ts b/frontend/src/plugins/cel/types/factor.ts
index f64ac98bb0..112dead415 100644
--- a/frontend/src/plugins/cel/types/factor.ts
+++ b/frontend/src/plugins/cel/types/factor.ts
@@ -18,7 +18,6 @@ export const StringFactorList = [
"environment_id", // using `environment.resource_id`
"project_id", // using `project.resource_id`
"database_name",
- "table_name",
"db_engine",
"sql_type",
diff --git a/frontend/src/plugins/cel/types/operator.ts b/frontend/src/plugins/cel/types/operator.ts
index c5adc3a9e7..6b207b76a4 100644
--- a/frontend/src/plugins/cel/types/operator.ts
+++ b/frontend/src/plugins/cel/types/operator.ts
@@ -64,11 +64,6 @@ export const OperatorList: Record<Factor, Operator[]> = {
...CollectionOperatorList,
...StringOperatorList,
]),
- table_name: uniq([
- ...EqualityOperatorList,
- ...CollectionOperatorList,
- ...StringOperatorList,
- ]),
db_engine: uniq([
...EqualityOperatorList,
...CollectionOperatorList,