PTO Square: Use wait-for-plugins step when checking if WooCommerce is installed#101786
PTO Square: Use wait-for-plugins step when checking if WooCommerce is installed#101786
Conversation
|
This PR modifies the release build for the following Calypso Apps: For info about this notification, see here: PCYsg-OT6-p2
To test WordPress.com changes, run |
Jetpack Cloud live (direct link)
Automattic for Agencies live (direct link)
|
|
Here is how your PR affects size of JS and CSS bundles shipped to the user's browser: App Entrypoints (~7 bytes added 📈 [gzipped]) DetailsCommon code that is always downloaded and parsed every time the app is loaded, no matter which route is used. Sections (~38383 bytes removed 📉 [gzipped]) DetailsSections contain code specific for a given set of routes. Is downloaded and parsed only when a particular route is navigated to. Async-loaded Components (~628 bytes removed 📉 [gzipped]) DetailsReact components that are loaded lazily, when a certain part of UI is displayed for the first time. Legend What is parsed and gzip size?Parsed Size: Uncompressed size of the JS and CSS files. This much code needs to be parsed and stored in memory. Generated by performance advisor bot at iscalypsofastyet.com. |
|
Moving back to In Progress as I will be fixing the tests |
|
Ready for review. @Automattic/serenity , I added you as a reviewer as I saw you created the |
gcsecsey
left a comment
There was a problem hiding this comment.
The changes look good to me.
I tested with both Business and eCommerce sites, and both work as described. ✅
Business:
CleanShot.2025-03-25.at.11.16.55.mp4
eCommerce:
CleanShot.2025-03-25.at.11.20.15.mp4
|
Merging this, if we find any issues, we can always create a follow-up task |
Resolves https://linear.app/a8c/issue/DOTOBRD-34/pto-square-check-if-woocommerce-is-active-is-taking-too-long
Proposed Changes
wait-for-plugin-installstep when checking ifWooCommerceplugin is installedwoocommerce_is_activeoptionWhy are these changes being made?
woocommerce_is_activetakes too long as it requires the option to be synchronized to the cached databasewait-for-plugin-installis faster as it does not depend on synchronization stepsTesting Instructions
/setup/new-hosted-site/plans?partnerBundle=squareBusinesssite and follow the checkoutGet paid with Squarein one of the Launchpad steps.Commercesite and confirm the flow redirects to the WooCommerce Launchpad too as in the previous stepRegression testing
new-hosted-siteflow withoutpartnerBundleCreate a siteor navigating to/setup/new-hosted-siteentrepreneurflowGet Started with Commerceor navigating to/setup/entrepreneurPre-merge Checklist