-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Move imports out of local scope in unmerge task. #5520
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
Conversation
| from sentry.models import Environment, GroupRelease, Project, Release | ||
|
|
||
| return { | ||
| 'Environment': cache( |
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.
These could be modified back to direct model class references, I don't have a strong preference on whether that change should be made or not.
src/sentry/tasks/unmerge.py
Outdated
| return result | ||
|
|
||
|
|
||
| def get_culprit(event): |
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.
This could go back to a lambda function.
|
|
||
|
|
||
| def get_event_score(caches, data, event): | ||
| from sentry.event_manager import ScoreClause |
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.
This could go back to a lambda function.
JTCunning
left a comment
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.
Reacted with 👍/👎 for agreement.
Looks good, bonus points if this was ran in the same environment that caught the thread spawning debacle.
Generated by 🚫 danger |
|
I made those changes. I didn't test this using the Trifecta of Doom because I didn't do the research on how to build a Docker image off of |
This should be unnecessary after GH-5499.
This is essentially a revert of ac5dfeb.