Skip to content

WIP: feat(metric alerts): Add tests for differences in workflow-engine-rule-serializers output#109242

Draft
kcons wants to merge 2 commits intomasterfrom
kcons/alertrulestuff
Draft

WIP: feat(metric alerts): Add tests for differences in workflow-engine-rule-serializers output#109242
kcons wants to merge 2 commits intomasterfrom
kcons/alertrulestuff

Conversation

@kcons
Copy link
Member

@kcons kcons commented Feb 24, 2026

This aims to add tests to endpoints that use WorkflowEngineDetectorSerializer to compare to legacy behavior, reporting the diff.
It also includes some attempts to resolve these differences.

@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Feb 24, 2026
)
)
if "original_alert_rule" in self.expand and alert_rule_ids:
snapshot_activities = AlertRuleActivity.objects.filter(
Copy link
Member

Choose a reason for hiding this comment

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

Unfortunately we want to avoid using any of the old models so AlertRuleActivity can't be queried here. It was a long time ago but I think we decided to just not populate this data.

Comment on lines +470 to +473
if snooze:
data["snooze"] = True
else:
data["snooze"] = False
Copy link
Member

Choose a reason for hiding this comment

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

When would we need this?

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