-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Fix for adding more then one configurable product #31654
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
Fix for adding more then one configurable product #31654
Conversation
Hi @nige-one. 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. 🕙 You can find the schedule on the Magento Community Calendar page. 📞 The triage of Pull Requests happens in the queue order. If you want to speed up the delivery of your contribution, please join the Community Contributions Triage session to discuss the appropriate ticket. 🎥 You can find the recording of the previous Community Contributions Triage on the Magento Youtube Channel ✏️ Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel |
@magento run all tests |
The failing Functional Tests do not seems to be related to this MR. |
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.
@nige-one thank you for your contribution! Could you cover your bugfix with an API Functional test? I think you could modify the testAddMultipleConfigurableProductToCart() method from the \Magento\GraphQl\ConfigurableProduct\AddConfigurableProductToCartTest test class by using the Magento/ConfigurableProduct/_files/configurable_products.php fixture instead of Magento/ConfigurableProduct/_files/product_configurable.php and adjusting the method body accordingly. Just be aware that we currently have a bug with running API Functional tests mentioned in #32252 - but the proposed solution mentioned there works as a workaround.
@magento run Functional Tests EE, Functional Tests CE, Functional Tests B2B |
@magento run Functional Tests CE, Functional Tests B2B |
Hi @bgorski, thank you for the review. |
@magento run all tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
Hi @kassner , @orlangur ❌ QA not Passed By adding a configurable product to the cart, getting an API response as Manual Scenario Steps
❌ Received successful response like below using POST call /rest/default/V1/carts/mine/items, but cart item is really not containing the second option with option id-144 & option-value 172
✔️ Expected result
Note: Given option id 144 and value 172 are valid entries; cross checked with the GET call rest/default/V1/configurable-products/MH01/options/all ; below id the options response of it.
|
I believe that the "Progress: needs update" tag was left here by the bot by mistake as a result of moving the task between columns on the board. Removing it. |
@engcom-Alfa hey, please check my comment above. If you did leave that tag for a reason, please add it back and let us know what changes are requested. Thanks! |
I think what just happened was also not intentional. Reverting. |
HI @bgorski , Thanks for all the above updates, I will re-test and update my observations here again. |
✔️ QA Passed Preconditions:
Manual testing scenario:
Before: ✖️ Responding with "No Stocks" error message even after the availability. After: ✔️ Multiple configurable products got added to the cart successfully. The functional testing of it has been covered in automation part if the same PR, and there is no additional regression testing is required |
@magento run all tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
Hi @nige-one, thank you for your contribution! |
Description (*)
Related Pull Requests
Fixed Issues (if relevant)
Manual testing scenarios (*)
Questions or comments
Contribution checklist (*)