-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
chore(sentry apps): Use new error design for token exchange process #83450
Conversation
src/sentry/sentry_apps/api/endpoints/sentry_app_authorizations.py
Outdated
Show resolved
Hide resolved
src/sentry/sentry_apps/api/endpoints/sentry_app_authorizations.py
Outdated
Show resolved
Hide resolved
Codecov ReportAttention: Patch coverage is ✅ All tests successful. No failed tests found.
Additional details and impacted files@@ Coverage Diff @@
## master #83450 +/- ##
==========================================
+ Coverage 85.64% 87.83% +2.18%
==========================================
Files 9498 9527 +29
Lines 541790 559738 +17948
Branches 21242 21242
==========================================
+ Hits 464040 491649 +27609
+ Misses 77385 67724 -9661
Partials 365 365 |
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.
changes are looking good, just a couple questions and nits
raise SentryAppSentryError( | ||
"Could not find application from grant", | ||
status_code=401, | ||
webhook_context={"code": self.code[:4], "grant_id": self.grant.id}, |
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.
xtreme nit: magic # to a constant
Relies on #83355 / I branched off of that PR
PLEASE LET ME KNOW IF ANYTHING IS SENSITIVE OR SUS INFO that can't be shared
(This is especially true due to this being the oauth process modules)