-
Notifications
You must be signed in to change notification settings - Fork 121
REST API: Migrate product add-ons #8670
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:
|
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.
Add-Ons network request succeeded but I'm not able to see the add-ons from an order.
Is that supposed to be fixed later, or is it something the orders API does not support, because it doesn't support it I guess there is no point in migrating this endpoint, does it?
I think this happens because this branch does not support products yet. It would be good to retest, once product support has been added.
|
Thanks @Ecarrion for the reviews! I merged the migration for products to this branch and can confirm that add-ons are displayed on orders now: Simulator.Screen.Recording.-.iPhone.14.Pro.-.2023-01-20.at.08.35.26.mp4I'm merging this PR to avoid blocking others. |
Closes: #8668
Description
This PR migrates the product add-ons endpoint to use the REST API with application password authentication. The related mapper has also been updated to parse contents without the data envelope.
Testing instructions
Pre-requisite: install Product Add-on extension to your self-hosted store.
applicationPasswordAuthenticationForSiteCredentialLoginand build the app.wc-product-add-ons/v1/product-add-onssucceeds.Screenshots
No screenshot since the product endpoints haven't been migrated yet.
RELEASE-NOTES.txtif necessary.