Skip to content

Conversation

@HazAT
Copy link
Member

@HazAT HazAT commented Apr 22, 2024

#inc-727

related to: #68148
fixes: getsentry/sentry-wizard#563

@sentry
Copy link

sentry bot commented Apr 22, 2024

Sentry Issue: SENTRY-37SG

@codecov
Copy link

codecov bot commented Apr 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.66%. Comparing base (57cb0dd) to head (b06225a).

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #69381      +/-   ##
==========================================
+ Coverage   72.69%   79.66%   +6.96%     
==========================================
  Files        6451     6452       +1     
  Lines      286607   286678      +71     
  Branches    49376    49378       +2     
==========================================
+ Hits       208358   228375   +20017     
+ Misses      77828    57881   -19947     
- Partials      421      422       +1     

see 1139 files with indirect coverage changes

@HazAT HazAT closed this in #69388 Apr 22, 2024
HazAT added a commit that referenced this pull request Apr 22, 2024
In the wizard endpoint, we’d reuse existing user auth tokens of the
authenticated user if:
1. the user was part of multiple orgs (==> we can't create an org-based
token)
2. AND we found one that satisfied the necessary permissions for
sourcemap upload.
 
With #68148 being merged, we
cannot do this anymore. Plain user auth token values are only gonna be
available directly after the token was created.

For the fix, this PR makes a change to the wizard endpoint to always
create a new user API token. This now works just like when we create an
org token for single-org users.

Closes: #69381

---------

Co-authored-by: Daniel Griesser <[email protected]>
@HazAT HazAT deleted the fix/inc-727 branch April 22, 2024 11:00
MichaelSun48 pushed a commit that referenced this pull request Apr 25, 2024
In the wizard endpoint, we’d reuse existing user auth tokens of the
authenticated user if:
1. the user was part of multiple orgs (==> we can't create an org-based
token)
2. AND we found one that satisfied the necessary permissions for
sourcemap upload.
 
With #68148 being merged, we
cannot do this anymore. Plain user auth token values are only gonna be
available directly after the token was created.

For the fix, this PR makes a change to the wizard endpoint to always
create a new user API token. This now works just like when we create an
org token for single-org users.

Closes: #69381

---------

Co-authored-by: Daniel Griesser <[email protected]>
@github-actions github-actions bot locked and limited conversation to collaborators May 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Wizard panicing in vite to next migrated project

2 participants