Skip to content
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

Merged
merged 26 commits into from
Jan 28, 2025

Conversation

Christinarlong
Copy link
Contributor

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)

@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Jan 14, 2025
@Christinarlong Christinarlong changed the base branch from master to crl/new-sa-error-w-fixes January 15, 2025 00:21
Base automatically changed from crl/new-sa-error-w-fixes to master January 17, 2025 21:40
Copy link

codecov bot commented Jan 24, 2025

Codecov Report

Attention: Patch coverage is 99.23077% with 1 line in your changes missing coverage. Please review.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
...ntry/sentry_apps/token_exchange/grant_exchanger.py 87.50% 1 Missing ⚠️
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              

Copy link
Member

@iamrajjoshi iamrajjoshi left a 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},
Copy link
Member

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

@Christinarlong Christinarlong merged commit 1c6b6d6 into master Jan 28, 2025
49 checks passed
@Christinarlong Christinarlong deleted the crl/new-sa-errors-token-exchange branch January 28, 2025 17:46
@github-actions github-actions bot locked and limited conversation to collaborators Feb 13, 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