Skip to content

ref(workflow_engine): Remove the TRIGGER_CONDITIONS list - #121998

Open
saponifi3d wants to merge 6 commits into
masterfrom
jcallender/wfe/fix-conditions
Open

ref(workflow_engine): Remove the TRIGGER_CONDITIONS list#121998
saponifi3d wants to merge 6 commits into
masterfrom
jcallender/wfe/fix-conditions

Conversation

@saponifi3d

Copy link
Copy Markdown
Contributor

Description

Remove the TRIGGER_CONDITIONS list, as it's easy to forget to update. We also already have an attribute on a condition, group that says if this is a detector trigger, workflow trigger, or action filter -- so this PR refactors the 1 use of TRIGGER_CONDITIONS to use the DetectorHandler.group abstraction instead.

@saponifi3d
saponifi3d marked this pull request as ready for review August 13, 2026 20:36
@saponifi3d
saponifi3d requested a review from a team as a code owner August 13, 2026 20:36
@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Aug 13, 2026
@saponifi3d
saponifi3d requested review from a team, frifri and leeandher August 13, 2026 20:37

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 675fbe8. Configure here.

Comment thread src/sentry/workflow_engine/endpoints/validators/base/data_condition_group.py Outdated
Comment thread src/sentry/workflow_engine/endpoints/validators/base/data_condition_group.py Outdated
@saponifi3d
saponifi3d marked this pull request as draft August 13, 2026 21:04
@saponifi3d
saponifi3d requested a lite review from Copilot August 13, 2026 21:20
@saponifi3d
saponifi3d marked this pull request as ready for review August 13, 2026 21:21

This comment was marked as low quality.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants