Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(aci milestone 3): always dual write resolution data conditions #84052

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mifu67
Copy link
Contributor

@mifu67 mifu67 commented Jan 25, 2025

The DataConditions that correspond to alert rule resolution should always be created, regardless of whether the resolution threshold is explicitly specified on the legacy alert rule. Migrate the resolve threshold after all the triggers have been migrated, because the logic for automatically determining the resolution threshold depends on their DataConditions existing.

@mifu67 mifu67 requested a review from a team as a code owner January 25, 2025 00:11
@mifu67 mifu67 requested a review from ceorourke January 25, 2025 00:11
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Jan 25, 2025
"organizations:workflow-engine-metric-alert-processing", alert_rule.organization
):
# create the resolution data triggers once we've migrated the critical/warning triggers
migrate_resolve_threshold_data_conditions(alert_rule)
Copy link
Member

Choose a reason for hiding this comment

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

Does this need to be after _handle_triggers or can we put it below migrate_alert_rule and only check the flag once? If it has to be there then you could store whether the flag is enabled in a variable and use that

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