-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
MC-26683: Removed get errors of cart allowing to add product to cart #27015
Conversation
Hi @AleksLi. Thank you for your contribution
For more details, please, review the Magento Contributor Guide documentation. |
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.
Hi @AleksLi,
Thank you for the contribution, however I don't think that removing error messages is the right way to fix this issue. This fix leads to the wrong flow when user will see cart errors only on place order step. My understanding here is that errors should be returned under error
node like it is right now, but cart data should be present under data
node. Could you please investigate the possibility to adjust this PR to display both - errors and data?
Thank you.
@lenaorobei Let me investigate that and come back with the commit or descriptive solution. |
@lenaorobei I investigated the possible solutions for that.
What do you think we should do? P.S. I would prefer the first option I guess. (my opinion). But I have no idea right now how to do that)) I will investigate it more in case we will choose 1st one. |
@AleksLi, I agree, option 1 looks better and complies with GraphQL standard. Appreciate your involvement! |
@lenaorobei Ok then. I will investigate and maybe make a commit today. Sorry, I don't have much time in the evening to make a big input into the process. It would be slow but in the right way)) |
@lenaorobei What I have found is:
Could you help me find out how to actually do that? At least a right way to dig. I'm debugging the whole process of logging error but cannot find anything useful to solve the issue, but I really want to. My other thought create some sort of |
I would start debugging from |
@lenaorobei Yes, thanks that's the place I'm digging now and around it. And I'm stuck on this. |
Looks like it will require framework change, see |
@lenaorobei totally agree with you. That require more time definitely and magento architecturer's help to resolve it right. So what should we do? Should I unassign the issue, because I'm interested to resolve it or keep helping in future progress? Please tell me |
It would be nice if you can propose some proof of concept of how to solve this issue on the framework level. |
dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Guest/AddSimpleProductToCartTest.php
Show resolved
Hide resolved
@lenaorobei I've seen your commits. thanks. |
Hi @lenaorobei, thank you for the review. |
Failed functional tests not related to the changes in this PR. |
Hi @AleksLi, thank you for your contribution! |
Description (*)
I removed completely the part of throwing any kind of error in the cart in case one of the product is out of stock.

I tried to change/add out of stock product that is in the cart and I've got an error with my current implementation (removed the getErrors -> throw $e).
Please help me figure out what might go wrong in this case.
Related Pull Requests
Fixed Issues (if relevant)
Manual testing scenarios (*)
Questions or comments
Why did we need that part of code to throw any kind of error in the cart for GraphQL cart management?
Contribution checklist (*)