Automattic / wp-calypso

The JavaScript and API powered WordPress.com
https://developer.wordpress.com
GNU General Public License v2.0
12.4k stars 1.98k forks source link

Storage add-on: the same add-on cannot be repurchased from `/add-ons` after cancelling. #86147

Closed southp closed 6 months ago

southp commented 8 months ago

Quick summary

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

Demonstration:

https://github.com/Automattic/wp-calypso/assets/1842898/0751018a-5f87-4dd2-bd20-906e341ee2f0

From a quick glance, using transaction history to determine whether one has owned an active storage add-on is wrong. This issue will also cause other anomalies in /plans, but I didn't include them here since the root cause is the same. This might potentially relate to Automattic/martech#2418.

Steps to reproduce

  1. Purchase a storage add-on from /add-ons
  2. Cancel it from the purchase management page
  3. Go to /add-ons again.

What you expected to happen

The button should be "Buy add-on"

What actually happened

The button stays as "Manage add-on".

Impact

Some (< 50%)

Available workarounds?

No but the platform is still usable.

Platform (Simple and/or Atomic)

No response

Logs or notes

No response

maciejpilarski commented 8 months ago

📌 REPRODUCTION RESULTS – Tested on Atomic – Replicated

📌 FINDINGS/SCREENSHOTS/VIDEO I was able to reproduce the issue on my test site. It is not possible to repurchase the add-on once canceled.

📌 ACTIONS