-
-
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
feat(ui): Switch bootstrap requests to fetch #83561
base: master
Are you sure you want to change the base?
Conversation
Removing some tech debt around the bootstrap requests. Adds stronger types and moves towards a fetch api that is similar to requestPromise. We can't seem to use requestPromise because react is expected to have already started.
🚨 Warning: This pull request contains Frontend and Backend changes! It's discouraged to make changes to Sentry's Frontend and Backend in a single pull request. The Frontend and Backend are not atomically deployed. If the changes are interdependent of each other, they must be separated into two pull requests and be made forward or backwards compatible, such that the Backend or Frontend can be safely deployed independently. Have questions? Please ask in the |
}; | ||
return [json, response.statusText, responseMeta]; | ||
} | ||
throw [response.status, response.statusText]; |
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.
i'm not sure if anything actually uses these weird tuples thrown but that's what we were doing before
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.
Looks good to me.
Bundle ReportChanges will increase total bundle size by 31.3MB (100.0%) ⬆️
|
Removing some tech debt around the bootstrap requests. Adds stronger types and moves towards a fetch api that is similar to requestPromise.
We can't seem to use requestPromise because react is expected to have already started.
Starting with tech debt as part of https://www.notion.so/sentry/Tech-Spec-Frontend-Bootstrap-Cache-Project-Loading-Performance-1748b10e4b5d80759127c15d3772e063