-
Notifications
You must be signed in to change notification settings - Fork 9.4k
[GraphQL] Compare products #29047
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
[GraphQL] Compare products #29047
Conversation
|
Hi @Usik2203. Thank you for your contribution
❗ Automated tests can be triggered manually with an appropriate comment:
You can find more information about the builds here ℹ️ Please run only needed test builds instead of all when developing. Please run all test builds before sending your PR for review. For more details, please, review the Magento Contributor Guide documentation. |
|
Hi @rogyar |
Co-authored-by: Andrii Beziazychnyi <a.beziazychnyi@atwix.com>
- add test coverage
keharper
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.
A few more description updates
Co-authored-by: Kevin Harper <keharper@users.noreply.github.com>
Co-authored-by: Kevin Harper <keharper@users.noreply.github.com>
|
@magento run all tests |
|
Hi @keharper |
|
@magento run all tests |
|
@magento run all tests |
|
@magento run all tests |
7a923b8 to
c53a3cf
Compare
|
@magento run all tests |
|
@magento run all tests |
|
@magento run all tests |
|
Hi @Usik2203, thank you for your contribution! |
Description (*)
Based on this schema compare-list.graphqls we should provide functionality for
list_idparameter in schemaNew schema https://github.com/magento/architecture/pull/430/files
Purpose
list_idis next:This PR adds
list_idparameter during comparing products and add CompareListGraphQl moduleRelated Pull Requests
Fixed Issues (if relevant)
Manual testing scenario
Create Compare List
mutation{ createCompareList (input: { products: ["123", "456"] }) #products optional { uid items { uid product { id sku } attributes { code value } } attributes { code label } } }Getting compared list for Customer
{ customer { firstname lastname compare_list { uid items { uid product { id sku } attributes { code value } } attributes { code label } } } }Get compareList by ID
{ compareList(uid: hash) { uid items { uid product { id sku } attributes { code value } } attributes { code label } } }Add Products to compare list
mutation { addProductsToCompareList(input: { uid: hash, products: [ 2049, 2048 ]}) { uid items { uid product { id sku } attributes { code value } } attributes { code label } } }Remove items from compare list
mutation { removeProductsFromCompareList(input: {uid: "hash" , products: [2047, 2048]}) { uid items { uid product { id sku } attributes { code value } } attributes { code label } } }Assign compare list to customer
mutation { assignCompareListToCustomer(uid: hash) }Delete compare list
mutation { deleteCompareList(uid:"zo8OIjXQR0r04lx8GEbg9Ivy0HabwFnS") { result } }