Skip to content

fix(aci milestone 3): fix migration for dual written anomaly detection alerts #93391

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

Merged
merged 5 commits into from
Jun 12, 2025

Conversation

mifu67
Copy link
Contributor

@mifu67 mifu67 commented Jun 11, 2025

Alerts that are dual written + alerts whose data conditions were fixed in the first attempt at the migration do not have data conditions that need to be updated. Check for the anomaly detection data condition and skip if it was found. Also introduce a try-catch to the update method so that future errors don't pause the migration.

@mifu67 mifu67 requested review from ceorourke and a team June 11, 2025 23:12
@mifu67 mifu67 requested a review from a team as a code owner June 11, 2025 23:12
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Jun 11, 2025
Copy link

codecov bot commented Jun 11, 2025

Codecov Report

Attention: Patch coverage is 87.50000% with 3 lines in your changes missing coverage. Please review.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
...igrations/0068_migrate_anomaly_detection_alerts.py 78.57% 3 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           master   #93391       +/-   ##
===========================================
+ Coverage   46.23%   88.02%   +41.79%     
===========================================
  Files       10271    10286       +15     
  Lines      592532   593406      +874     
  Branches    23034    23022       -12     
===========================================
+ Hits       273933   522367   +248434     
+ Misses     318167    70607   -247560     
  Partials      432      432               

@mifu67 mifu67 merged commit 6f82cff into master Jun 12, 2025
61 checks passed
@mifu67 mifu67 deleted the mifu67/aci/anomaly-detection-migration-fix branch June 12, 2025 17:58
andrewshie-sentry pushed a commit that referenced this pull request Jun 19, 2025
…n alerts (#93391)

Alerts that are dual written + alerts whose data conditions were fixed
in the first attempt at the migration do not have data conditions that
need to be updated. Check for the anomaly detection data condition and
skip if it was found. Also introduce a try-catch to the update method so
that future errors don't pause the migration.
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.

3 participants