Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
fix: build cel (#20683)
ecmadao8631682beb78
diff --git a/frontend/src/react/pages/project/ProjectMaskingExemptionCreatePage.tsx b/frontend/src/react/pages/project/ProjectMaskingExemptionCreatePage.tsxindex ba4d875e74..88805dac64 100644--- a/frontend/src/react/pages/project/ProjectMaskingExemptionCreatePage.tsx+++ b/frontend/src/react/pages/project/ProjectMaskingExemptionCreatePage.tsx@@ -191,16 +191,9 @@ export function ProjectMaskingExemptionCreatePage({parsedExpr,]);celString = rewriteResourceDatabase(celString);- const parts = [celString, ...extraExpressions].filter((e) => e);- exemptions.push(- create(MaskingExemptionPolicy_ExemptionSchema, {- members: memberList,- condition: create(ExprSchema, {- description,- expression: parts.length > 0 ? parts.join(" && ") : "",- }),- })- );+ if (celString) {+ extraExpressions.push(`(${celString})`);+ }}} else {// ALL or SELECT mode@@ -218,19 +211,22 @@ export function ProjectMaskingExemptionCreatePage({} else if (nonEmpty.length > 1) {resourceCondition = nonEmpty.map((e) => `(${e})`).join(" || ");}-- const parts = [resourceCondition, ...extraExpressions].filter((e) => e);- exemptions.push(- create(MaskingExemptionPolicy_ExemptionSchema, {- members: memberList,- condition: create(ExprSchema, {- description,- expression: parts.length > 0 ? parts.join(" && ") : "",- }),- })- );+ if (resourceCondition) {+ extraExpressions.push(`(${resourceCondition})`);+ }}+ exemptions.push(+ create(MaskingExemptionPolicy_ExemptionSchema, {+ members: memberList,+ condition: create(ExprSchema, {+ description,+ expression:+ extraExpressions.length > 0 ? extraExpressions.join(" && ") : "",+ }),+ })+ );+const policy = await useAppStore.getState().getOrFetchPolicyByParentAndType({