-
Notifications
You must be signed in to change notification settings - Fork 3
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
fix/lazy load summary to full #830
fix/lazy load summary to full #830
Conversation
fb5298d
to
6d5b888
Compare
6d5b888
to
9e6e7fc
Compare
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.
Some renaming nits, but it worked well on my tests. The only downside is that with no cache it will wait for the query in both requests, but that's not an issue for production/staging, only dev env. LGTM
const summaryData = summaryQuery.data?.summary.builds; | ||
const { data: buildsData, status: buildsStatus } = buildsQuery; | ||
const summaryData = treeDetailsLazyLoaded.summary?.data?.summary.builds; | ||
const { data: fullData, status: buildsStatus } = treeDetailsLazyLoaded.full; |
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.
ditto about fullStatus
const { tests: testsQuery, summary: summaryQuery } = treeDetailsLazyLoaded; | ||
const { data, status, isLoading: testsIsLoading } = testsQuery; | ||
const { full: fullQuery, summary: summaryQuery } = treeDetailsLazyLoaded; | ||
const { data, status, isLoading: testsIsLoading } = fullQuery; |
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.
similar to the other renames, this should be fullIsLoading
since it's no longer exclusive to tests
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.
LGTM
Make the lazy load be tree details to full, so we don't get 4 requests, only two Renamed TTreeTestsFullData to TreeDetailsFullData across the codebase for better clarity and consistency. Updated all references and dependencies to use the new type name. Closes #791
90c5337
to
881c5fa
Compare
Description
Make lazy load be Summary to Full instead of Summary to 3 endpoints
How to test
Enter in any tree details with the Network tab open and see how it goes.
Compare with the same result on staging
Closes #791