Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@transcend-io/privacy-types": patch
"@transcend-io/cli": patch
---

Add `RulesAutomationRuleTerminalFailure` and `RulesAutomationRuleTerminalFailureAssigned` values to the `ActionItemCode` enum so that Rules Automation rule owners can be notified when a rule hits a terminal execution failure. Regenerate the CLI `transcend.yml` JSON schema so the new codes are reflected.
4 changes: 3 additions & 1 deletion packages/cli/schema/transcend-yml-schema-latest.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@
"ONBOARDING",
"REQUEST_ASSIGNED_TO_USER",
"BUSINESS_ENTITY_NEEDS_DOCUMENTATION",
"DATA_POINT_DATABASE_QUERY_NEEDS_APPROVAL"
"DATA_POINT_DATABASE_QUERY_NEEDS_APPROVAL",
"RULES_AUTOMATION_RULE_TERMINAL_FAILURE",
"RULES_AUTOMATION_RULE_TERMINAL_FAILURE_ASSIGNED"
]
},
"collections": {
Expand Down
4 changes: 3 additions & 1 deletion packages/cli/schema/transcend-yml-schema-v10.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@
"ONBOARDING",
"REQUEST_ASSIGNED_TO_USER",
"BUSINESS_ENTITY_NEEDS_DOCUMENTATION",
"DATA_POINT_DATABASE_QUERY_NEEDS_APPROVAL"
"DATA_POINT_DATABASE_QUERY_NEEDS_APPROVAL",
"RULES_AUTOMATION_RULE_TERMINAL_FAILURE",
"RULES_AUTOMATION_RULE_TERMINAL_FAILURE_ASSIGNED"
]
},
"collections": {
Expand Down
12 changes: 12 additions & 0 deletions packages/privacy-types/src/actionItems.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,18 @@ export enum ActionItemCode {
* A database datapoint has queries that need approval
*/
DataPointDatabaseQueryNeedsApproval = 'DATA_POINT_DATABASE_QUERY_NEEDS_APPROVAL',
/**
* - A Rules Automation rule has hit a terminal failure (an execution
* transitioned to FAILURE with no further retries) and the rule has
* no assigned owners
*/
RulesAutomationRuleTerminalFailure = 'RULES_AUTOMATION_RULE_TERMINAL_FAILURE',
/**
* - A Rules Automation rule has hit a terminal failure (an execution
* transitioned to FAILURE with no further retries) and the rule has
* one or more assigned owners (users or teams)
*/
RulesAutomationRuleTerminalFailureAssigned = 'RULES_AUTOMATION_RULE_TERMINAL_FAILURE_ASSIGNED',
}

/**
Expand Down
Loading