-
-
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
ref(ownership): refactor post_process telemetry #78979
Conversation
}, | ||
): | ||
# see ProjectOwnership.get_issue_owners | ||
issue_owners: Sequence[tuple[Rule, Sequence[Team | RpcUser], str]] = [] |
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.
do we need to go through handle_invalid_group_owners
in this branch? the old code without the early-return would eventually call handle_invalid_group_owners(group)
.
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.
although imo if the killswitch is set, returning without doing anything seems like the right call
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.
yeah, this is a fair point. it is a behavior change. i'll modify the function to call handle_invalid_group_owners
. i feel suspicious about even hitting that if the killswitch is activated, but will keep the same.
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.
went ahead and changed that else back
Codecov ReportAttention: Patch coverage is ✅ All tests successful. No failed tests found.
Additional details and impacted files@@ Coverage Diff @@
## master #78979 +/- ##
==========================================
- Coverage 78.29% 78.29% -0.01%
==========================================
Files 7130 7128 -2
Lines 313632 313603 -29
Branches 51170 51172 +2
==========================================
- Hits 245568 245541 -27
+ Misses 61650 61644 -6
- Partials 6414 6418 +4 |
I was finding this code very hard to read with all of the telemetry context creations and indentation. No behavior changes intended.
metrics.wraps
andsentry_sdk.trace
we can get rid of most of these.sentry/src/sentry/tasks/post_process.py
Line 692 in 020c9f4