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

feat(ui): Switch bootstrap requests to fetch #83561

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

scttcper
Copy link
Member

@scttcper scttcper commented Jan 16, 2025

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

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.
@scttcper scttcper requested review from markstory, JonasBa and a team January 16, 2025 00:27
@github-actions github-actions bot added Scope: Frontend Automatically applied to PRs that change frontend components Scope: Backend Automatically applied to PRs that change backend components labels Jan 16, 2025
Copy link
Contributor

🚨 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 #discuss-dev-infra channel.

@scttcper scttcper requested a review from a team January 16, 2025 00:28
};
return [json, response.statusText, responseMeta];
}
throw [response.status, response.statusText];
Copy link
Member Author

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

Copy link
Member

@markstory markstory left a 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.

Copy link

codecov bot commented Jan 16, 2025

Bundle Report

Changes will increase total bundle size by 31.3MB (100.0%) ⬆️⚠️, exceeding the configured threshold of 5%.

Bundle name Size Change
app-webpack-bundle-array-push 31.3MB 31.3MB (100%) ⬆️⚠️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: Backend Automatically applied to PRs that change backend components Scope: Frontend Automatically applied to PRs that change frontend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants