-
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
fix: parent product cache not clearing #37528
base: 2.4-develop
Are you sure you want to change the base?
Conversation
Hi @adamzero1. Thank you for your contribution! Add the comment under your pull request to deploy test or vanilla Magento instance:
❗ Automated tests can be triggered manually with an appropriate comment:
Allowed build names are:
You can find more information about the builds here For more details, review the Code Contributions documentation. |
@magento create issue |
Could you cover changes with some test cases ? Thanks you |
@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 message the #magento-devops slack channel if they don't show in a reasonable amount of time and a representative will look into any issues. |
@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 message the #magento-devops slack channel if they don't show in a reasonable amount of time and a representative will look into any issues. |
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.
Hello @adamzero1,
Thanks for the contribution!
Please cover the changes with some automated tests.
Thanks
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.
Hello @adamzero1,
Is the issue reproducible with MSI enabled? If not then I think we should not fix this because we recommend all our merchants to enable the MSI.
Thanks
@engcom-Hotel: I beg to differ We've been trying out MSI many times, and always came to the conclusion that it's not stable yet to be used in production environments (products that should be in stock are out of stock, products that should be out of stock are in stock, after a shop had been running for a few months with MSI enabled). So we have it almost everywhere disabled for our clients. It would still be beneficial to keep getting bugfixes for non-MSI installations out there in my opinion. |
Apologies on the delay, I agree with @hostep , MSI isn't stable enough for the majority of our clients. |
Description (*)
When a simple product has more then one parent, only one of the parents will have their cache cleared.
Related Pull Requests
Fixed Issues (if relevant)
N/A was unable to find an existing issue relating to this
Manual testing scenarios (*)
Expected: Both configurables should only have option B present
Actual: One of the configurables will still have both A and B options available.
Additional Notes
Saving the broken configurable will clear cache so the issue is "fixed".
Questions or comments
I was hoping to write a unit test for this, but given how much of the class is private methods and also direct SQL queries (with no middle class) it would make it very difficult.
Contribution checklist (*)
Resolved issues: