-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
feat(issue-states): Add presave checks for GroupSubStatus #47420
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #47420 +/- ##
==========================================
- Coverage 80.73% 80.25% -0.49%
==========================================
Files 4760 4759 -1
Lines 201264 201328 +64
Branches 11626 11626
==========================================
- Hits 162481 161566 -915
- Misses 38525 39504 +979
Partials 258 258
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for all the effort on this PR! It must have not been the most fun to go through all those files.
src/sentry/models/group.py
Outdated
instance.status not in [GroupStatus.UNRESOLVED, GroupStatus.IGNORED] | ||
and instance.substatus is not None | ||
): | ||
raise ValueError( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if we should use logger.exception
first and then on a follow up PR make all the ValueError changes.
What do you think?
Maybe I'm paranoid.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that's a great idea - we can let it run for a week and switch to ValueError if things look safe
00e6808
to
28fa05a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉
WOR-2973