Automattic / wc-calypso-bridge

20 stars 4 forks source link

Add sync coming soon status from LYS to WPCOM #1503

Closed ilyasfoo closed 2 months ago

ilyasfoo commented 2 months ago

Changes proposed in this Pull Request:

Closes #1496

Sync coming soon status from LYS to WPCOM.

Note: This PR requires D159271-code

How to test the changes in this Pull Request:

If D159271-code isn't merged

  1. Patch your wpcom sandbox with D159271-code
  2. SSH to your atomic site
  3. Run vim ~/htdocs/wp-config.php
  4. Add the line near the top of the config define( 'JETPACK__SANDBOX_DOMAIN', 'SANDBOX_URL' ); - Replace SANDBOX_URL with your sandbox URL and save
  5. Refresh wp-admin page and observe Jetpack API Sandboxed on admin bar

If your site has already launched

  1. SSH into your sandbox
  2. Run php ./public_html/bin/atomic/unlaunch-site.php SITE_URL - Replace SITE_URL with your atomic site URL

Test launch your store task

  1. Use a WPCOM atomic e-commerce site
  2. Enable LYS feature flag (via beta tester or you can remove these lines).
  3. Go to Settings > WooCommerce > Site visibility
  4. Ensure Coming soon is selected
  5. Go to https://wordpress.com/settings/general/SITE_URL
  6. Ensure your site is not launched yet. If not, do the steps in instructions above this one
  7. Go to My Home
  8. Click on Launch your store task
  9. Click on Launch your store button
  10. Go to https://wordpress.com/settings/general/SITE_URL
  11. Observe your site is live

Test site visibility coming soon

  1. Go to Settings > WooCommerce > Site visibility
  2. Select Coming soon and click Save changes
  3. Go to https://wordpress.com/settings/general/SITE_URL
  4. Wait for latest settings to fetch in around 5 seconds
  5. Observe Coming soon is selected

Test site visibility live

  1. Go to Settings > WooCommerce > Site visibility
  2. Select Live and click Save changes
  3. Go to https://wordpress.com/settings/general/SITE_URL
  4. Wait for latest settings to fetch in around 5 seconds
  5. Observe Public is selected

Other information:

FOR PR REVIEWER ONLY:

github-actions[bot] commented 2 months ago

Size Change: 0 B

Total Size: 201 kB

ℹ️ View Unchanged | Filename | Size | | :--- | :---: | | `./build/53.js` | 1.08 kB | | `./build/index.css` | 878 B | | `./build/index.js` | 126 kB | | `./build/marketing.js` | 58.3 kB | | `./build/payment-gateway-suggestions.css` | 1.24 kB | | `./build/payment-gateway-suggestions.js` | 6.57 kB | | `./build/plugins.js` | 3.93 kB | | `./build/style-index.css` | 2.15 kB | | `./build/style-marketing.css` | 800 B |

compressed-size-action