Skip to content

Commit 6c8f556

Browse files
authored
chore(ACI): Pop actions off of conditions (#103755)
Small fix for a bug I noticed - when we "split" actions from conditions we weren't actually removing the actions from the condition group data, just copying it over into it's own variable so that conditions still had actions on it. We don't need to run actions through the condition group validator as they are run through their own action validator.
1 parent e741a9a commit 6c8f556

File tree

1 file changed

+1
-1
lines changed
  • src/sentry/workflow_engine/endpoints/validators/base

1 file changed

+1
-1
lines changed

src/sentry/workflow_engine/endpoints/validators/base/workflow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def _split_action_and_condition_group(
4343
self, action_filter: dict[str, Any]
4444
) -> tuple[ListInputData, InputData]:
4545
try:
46-
actions = action_filter["actions"]
46+
actions = action_filter.pop("actions")
4747
except KeyError:
4848
raise serializers.ValidationError("Missing actions key in action filter")
4949

0 commit comments

Comments
 (0)