wp-calypso icon indicating copy to clipboard operation
wp-calypso copied to clipboard

Storage add-on: A user can't buy the 50G add-on and then buy the 100G add-on

Open southp opened this issue 1 year ago • 2 comments

Quick summary

This issue is broken out from the auditing in https://github.com/Automattic/wp-calypso/issues/85773.

Image

As shown here, my test Business site owning a 50G add-on can't buy the 100G add-on since it's absent. In /plans, it's even more confusing since I can select it but it will show me "Contact Support"

Image

It should be available since the maximum storage is 200G. From a quick glance of the code, the way exceedsSiteStorageLimits computed is wrong.

Steps to reproduce

  1. Create a test site on the Creator(Business) plan.
  2. Purchase the 50G add-on
  3. Access /add-ons

What you expected to happen

I'd see the 100G add-on available.

What actually happened

The 100G add-on doesn't show.

Impact

Some (< 50%)

Available workarounds?

No but the platform is still usable.

Platform (Simple and/or Atomic)

No response

Logs or notes

No response

southp avatar Jan 09 '24 10:01 southp

📌 REPRODUCTION RESULTS

Replicated exactly as above.

📌 ACTIONS

Triaged

rickmgithub avatar Jan 11 '24 09:01 rickmgithub

@southp as far as I checked this will also fail on checkout, so it's actually correctly removed in the UI. Either the site cannot upgrade to another 100GB or only a single storage add-on purchase is permissible.

I think/recall part of my testing the difference between the 200GB limit and a Creator site with extra 50GB was 93 and not 100. Not sure where the other 7 came from - which would make for additional 100GB purchase violate the 200 limit. We need to check the backend.

chriskmnds avatar May 24 '24 10:05 chriskmnds

@mmtr - tagging you for action per our Group Triage session.

inaikem avatar Oct 15 '24 15:10 inaikem

I think the issue is a bit different now, and it depends on whether the site is Simple or Atomic, and whether the admin interface is set to Default or Classic.

Simple sites – Default admin interface

  • Can I purchase storage from the Plans page? ❌
  • Is the "Upgrades > Add-ons" menu available? ✅
  • Can I purchase storage from the Add-ons page? ✅
  • The "Needs more storage?" link in the Hosting overview page opens the Plans page, where I cannot purchase extra storage ❌
Plans page Add-ons page Hosting overview page
Image Image Image

Simple sites – Classic admin interface

  • Can I purchase storage from the Plans page? ❌
  • Is the "Hosting > Add-ons" menu available? ✅
  • Can I purchase storage from the Add-ons page? ✅
  • The "Needs more storage?" link in the Hosting overview page opens the Plans page, where I cannot purchase extra storage ❌
Plans page Add-ons page Hosting overview page
Image Image Image

Atomic sites – Default admin interface

  • Can I purchase storage from the Plans page? ✅
  • Is the "Upgrades > Add-ons" menu available? ❌
  • Can I purchase storage from the Add-ons page? ✅
  • The "Needs more storage?" link in the Hosting overview page opens the Add-ons page, which is not accessible from any menu (but I can at least purchase extra storage here) ⚠
Plans page Add-ons page Hosting overview page
Image Image Image

Atomic sites – Classic admin interface

  • Can I purchase storage from the Plans page? ✅
  • Is the "Hosting > Add-ons" menu available? ✅
  • Can I purchase storage from the Add-ons page? ✅
  • The "Needs more storage?" link in the Hosting overview page opens the Add-ons page, where I cannot purchase extra storage ✅
Plans page Add-ons page Hosting overview page
Image Image Image

The experience is quite inconsistent 🤯

Ideally:

  • Extra storage should be purchased in the same places (Plans, or Add-ons, or both) across all scenarios
  • The "Needs more storage?" link should like to the same page always
  • The Add-ons menu should be visible at all cases

cc @Automattic/martech @Automattic/lego @Automattic/shilling

mmtr avatar Oct 16 '24 09:10 mmtr

Opened D164593-code and https://github.com/Automattic/wp-calypso/pull/95678 which fixes this issue.

I also opened a nice to have change in /plans page that adds the addon dropdown for Personal and Premium plans: https://github.com/Automattic/wp-calypso/pull/95677 - we can skip this one if the addons shouldn't appear for premium and personal plans.

BogdanUngureanu avatar Oct 24 '24 15:10 BogdanUngureanu

@BogdanUngureanu I'm moving this back to "In Progress" since I think some more changes are still needed for D164593-code to fix the tests.

It also seems that https://github.com/Automattic/wp-calypso/pull/95677 should be abandoned?

Feel free to change the status to "Needs Review" once everything is ready.

mmtr avatar Nov 25 '24 12:11 mmtr