Skip to content

Conversation

@snigdhas
Copy link
Contributor

@snigdhas snigdhas commented Apr 17, 2025

We're renaming MetricAlertFire to MetricIssue and changing the group type slug from metric_alert_fire to metric_issue. This change is safe to land once this migration drops all the existing detector rows that use metric_alert_fire.

I've left a skeleton class def with the slug to keep getsentry tests passing. The corresponding getsentry PR can land after this one, and then I'll remove the class in a followup.

@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Apr 17, 2025
Comment on lines 112 to 114
# This needs to be removed once the import in getsentry is updated to use MetricIssue
class MetricAlertFire:
pass
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this can be removed once this pr lands

@codecov
Copy link

codecov bot commented Apr 18, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #89896      +/-   ##
==========================================
+ Coverage   87.72%   87.77%   +0.04%     
==========================================
  Files       10239    10226      -13     
  Lines      577356   576196    -1160     
  Branches    22696    22562     -134     
==========================================
- Hits       506502   505749     -753     
+ Misses      70411    70016     -395     
+ Partials      443      431      -12     

@snigdhas snigdhas marked this pull request as ready for review April 18, 2025 21:16
@snigdhas snigdhas requested review from a team as code owners April 18, 2025 21:16
snigdhas added a commit that referenced this pull request Apr 21, 2025
We're renaming `MetricAlertFire` to `MetricIssue`
([PR](#89896)). To do so, we
need to drop existing detectors that use the `metric_alert_fire` slug.
There's ~230 rows that match that filter and the table has ~3k rows. All
the rows in the table were written during a test of the dual write and
are safe to drop as they'll be rewritten again once the flag is on. I've
marked this as post-deploy but it probably doesn't need to be.
snigdhas added a commit that referenced this pull request Apr 22, 2025
Migration has been run, test will not be runnable once #89896 lands
andrewshie-sentry pushed a commit that referenced this pull request Apr 22, 2025
We're renaming `MetricAlertFire` to `MetricIssue`
([PR](#89896)). To do so, we
need to drop existing detectors that use the `metric_alert_fire` slug.
There's ~230 rows that match that filter and the table has ~3k rows. All
the rows in the table were written during a test of the dual write and
are safe to drop as they'll be rewritten again once the flag is on. I've
marked this as post-deploy but it probably doesn't need to be.
andrewshie-sentry pushed a commit that referenced this pull request Apr 22, 2025
Migration has been run, test will not be runnable once #89896 lands
@snigdhas snigdhas merged commit 78dd306 into master Apr 22, 2025
64 checks passed
@snigdhas snigdhas deleted the snigdha/rename-group-type branch April 22, 2025 22:34
@github-actions github-actions bot locked and limited conversation to collaborators May 8, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

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