Description
Proposed Changes
A new button card will be added to the purchases
screen that will only be displayed for Marketplace products. That button will call an endpoint that will reinstall all the subscriptions. This will allow the user to restore accidentally removed plugins.
Click |
Installing |
Successful |
|
e |
|
Testing Instructions
- Follow the Steps to Reproduce in the original issue
- Make sure the following diff D99297-code is applied and you are sandboxed
- Go to
/purchases/subscriptons/:siteId
- Select the subscription you have deleted in the first step
- Click on the
Reinstall
button card
- Ensure that after some seconds, a success notification should be displayed
- Go to plugins and search for the deleted plugin, e.g.
/plugins/woocommerce-subscriptions/:siteId
- Make sure you can see
Installed and active
on top of the side bar on the right
- Go again to
/purchases/subscriptons/:siteId
- Select any other purchase that is not from the Marketplace, e.g. select a plan
- Make sure the
Reinstall
button card is not displayed
Pre-merge Checklist
- Has the general commit checklist been followed? (PCYsg-hS-p2)
- Have you written new tests for your changes?
- Have you tested the feature in Simple (P9HQHe-k8-p2), Atomic (P9HQHe-jW-p2), and self-hosted Jetpack sites (PCYsg-g6b-p2)?
- Have you checked for TypeScript, React or other console errors?
- Have you used memoizing on expensive computations? More info in Memoizing with create-selector and Using memoizing selectors and Our Approach to Data
- Have we added the “[Status] String Freeze” label as soon as any new strings were ready for translation (p4TIVU-5Jq-p2)?
– [ ] For changes affecting Jetpack: Have we added the “[Status] Needs Privacy Updates” label if this pull request changes what data or activity we track or use (p4TIVU-ajp-p2)?
Fixes #67624
Unfortunately, no screenshots were provided by the developer.