-
Notifications
You must be signed in to change notification settings - Fork 685
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
[PWA-1016] Refactor Add To Cart to use generic AddProductsToCart mutation #3092
Conversation
- Deprecate old mutations and methods using product specific mutations
|
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.
Great job with the implementation allowing for backwards compat. I think we could even reuse this pattern where we've got un-migrated gql files.
Hopefully we actually get around to removing the deprecated code.
Approving though it seems there are tests to update and a node failure.
QA Approved. |
Description
In Magento 2.4.1 there is a new AddProductsToCart mutation which is more generic and type agnostic than the older, type specific mutations such as "AddConfigurableProductsToCart".
Investigate whether we can replace the Simple and Configurable add mutations with the generic one. If so, please do the work as part of this ticket.
Investigate whether it can support future types such as Bundled/Virtual/etc. If so, we don't need the "Supported Product Types" logic anymore, so please remove that too.
Links:
https://i.gyazo.com/5e19a2e43a1b46654d053197a280c1ca.png
#2769 (comment)
https://github.com/magento/pwa-studio/blob/develop/packages/peregrine/lib/talons/ProductFullDetail/useProductFullDetail.js#L237-L262
Related Issue
Acceptance
Verification Stakeholders
Specification
Verification Steps
Screenshots / Screen Captures (if appropriate)
Checklist