-
Notifications
You must be signed in to change notification settings - Fork 121
REST API: Migrate site plugin fetching endpoint #8678
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
You can test the changes from this Pull Request by:
|
jaclync
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀 Didn't see the plugins section in settings at first, after looking into the code it was because the user wasn't an admin.
| siteID: siteID, | ||
| path: path, | ||
| parameters: nil, | ||
| availableAsRESTRequest: true) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR description mentioned that other endpoints aren't converted because we're not supporting Jetpack installation for REST login. I remember we implemented WooCommerce plugin installation, does that use a different endpoint? Do we plan to support Jetpack installation in the future, with a similar upsell to JCP sites?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We implemented Woo installation in a web view only - we want to handle that natively but haven't gotten around to doing that yet. Similarly, we want to support Jetpack installation after the first iteration of the REST API project is shipped, so we'll migrate the rest of the endpoints then.
Generated by 🚫 dangerJS |
Closes: #8677
Description
This PR enables REST API on the site plugin fetching endpoint and updates the related mapper to parse contents without the data envelope. I'm not updating the other endpoints for site plugins since we are not handling Jetpack installation for JCP sites when logging in with WPOrg credentials.
Testing instructions
applicationPasswordAuthenticationForSiteCredentialLoginand build the app.Screenshots
RELEASE-NOTES.txtif necessary.