Automattic / Automattic/woocommerce-services
NUX JP install: Use Plugin_Upgrader, not wp.updates.installPlugin
Open
[Type] Technical Debt
woocommerce-services
- Dominant language
- JavaScript
- Stars
- 112
- Forks
- 35
- Avg merge
- 3d 1h
- Merged PRs (30d)
- 14
Description
Instead of using the JS-based `wp.updates.installPlugin`, use one ajax function for both installng and activating Jetpack as needed, using `Plugin_Upgrader`. This was brought up by @jeffstieler [here](https://github.com/Automattic/woocommerce-services/pull/1031#discussion_r122505316).
Contributor guide
Research direction
No file or test is named. Locate the NUX JP install flow and the current wp.updates.installPlugin call, then trace how Jetpack installation and activation are handled; done means one AJAX function uses Plugin_Upgrader for both actions as needed.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, wordpress
- Domain
- backend
- Issue type
- Refactor
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100