studiopress / genesis-connect-woocommerce

Core plugin for developing WooCommerce integration
18 stars 14 forks source link

[LOC-6167] Fetch plugin updates from WPE servers #69

Closed nickcernis closed 3 weeks ago

nickcernis commented 3 weeks ago

To test

  1. Create a new site in Local.
  2. Install the transient manager plugin, for example with WP-CLI via Site Shell: wp plugin install --activate transients-manager
  3. Download, install, and activate the Genesis Connect for WooCommerce plugin from this zip via your WP Admin (Plugins → Add New Plugin → Upload Plugin): genesis-connect-woocommerce.1.1.1.zip (I created the zip by reducing the version number in the root PHP file and running npm run zip.) Do not update the plugin yet when you see an update prompt.
  4. Visit Tools → Transients and click "Delete All". This deletes any cached update_plugins transient you may have that could result in updates coming from WP.org instead of WPE if a plugin update check occurred after you installed but before you activated Genesis Blocks. This is just to accelerate testing (it prevents you having to wait for transients to expire). Customers will not have to do this once upgrading to 1.1.3 of the plugin.
  5. Go to Dashboard → Updates. You should see a pending update for Genesis Connect for WooCommerce.
  6. Click "Select All" and then "Update Plugins". The update will run and expanding "more details" should show that it was downloaded from WPE: genesis-connect-woocommerce-updated

At this point the Genesis Connect for WooCommerce on your site is the old version without WPE update checking (that is just what's uploaded to the WPE update server at the moment — we will change that when this PR is merged). You will need to delete the plugin and reinstall the one linked above if you want to do further tests.

Other screenshots

Diff of current production version with zip created by npm run script from this PR. (I removed the stray package-lock.json from the production zip on purpose.)

genesis-connect-woocommerce-zip-diff