Skip to content

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

chore: use dropdowns for project_id (#9165)

Liu Ji75deb88e0abf
diff --git a/frontend/src/components/CustomApproval/Settings/components/common/utils.ts b/frontend/src/components/CustomApproval/Settings/components/common/utils.ts
index 20b1f4a11b..bf2bbcee03 100644
--- a/frontend/src/components/CustomApproval/Settings/components/common/utils.ts
+++ b/frontend/src/components/CustomApproval/Settings/components/common/utils.ts
@@ -146,7 +146,7 @@ const getProjectIdOptions = () => {
.map<SelectOption>((proj) => {
const projectId = extractProjectResourceName(proj.name);
return {
- label: projectId,
+ label: `${projectId} (${proj.title})`,
value: projectId,
};
});
@@ -221,6 +221,7 @@ export const getFactorOptionsMap = (source: Risk_Source) => {
export const factorSupportDropdown: Factor[] = [
"environment_id",
+ "project_id",
"db_engine",
"sql_type",
"level",
diff --git a/frontend/src/components/SensitiveData/components/utils.ts b/frontend/src/components/SensitiveData/components/utils.ts
index 577fc251cf..0f4fc05848 100644
--- a/frontend/src/components/SensitiveData/components/utils.ts
+++ b/frontend/src/components/SensitiveData/components/utils.ts
@@ -68,7 +68,7 @@ export const getProjectIdOptions = () => {
.map<SelectOption>((proj) => {
const projectId = extractProjectResourceName(proj.name);
return {
- label: projectId,
+ label: `${projectId} (${proj.title})`,
value: projectId,
};
});