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
add: core profiler fetch extensions #38270
Conversation
0adba7f
to
c5d9f01
Compare
Test Results SummaryCommit SHA: fed506a
To view the full API test report, click here. To view the full E2E test report, click here. To view all test reports, visit the WooCommerce Test Reports Dashboard. |
Hi @chihsuan, @adrianduffell, @woocommerce/ghidorah Apart from reviewing the code changes, please make sure to review the testing instructions as well. You can follow this guide to find out what good testing instructions should look like: |
29520cd
to
c7f46ff
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.
LGTM and tested well 👍 🚀
I think we need a rebase.
Pre-approving
8f14774
to
bcc9cb9
Compare
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## trunk #38270 +/- ##
==========================================
- Coverage 51.6% 51.5% -0.1%
+ Complexity 17444 17443 -1
==========================================
Files 440 440
Lines 80297 80291 -6
==========================================
- Hits 41401 41346 -55
- Misses 38896 38945 +49 |
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! 👍 😃
bcc9cb9
to
acfb160
Compare
- prefetch it once in the machine init so that it's instant when used later - fetch it again in preExtensions state and store it to context - added prefetch for getCountries as well
acfb160
to
fed506a
Compare
Submission Review Guidelines:
Changes proposed in this Pull Request:
Adds a prefetch call in the background for fetching extensions and countries in the init state without blocking the UI state.
This makes it so that subsequently when these calls are made, there won't be any loading time
Closes #37992.
How to test the changes in this Pull Request:
Using the WooCommerce Testing Instructions Guide, include your detailed testing instructions:
Intermediate PR without user facing feature, QA testing not required