-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
[Forward Port] magento/magento2#12205: Stock inventory reindex bug. #25306
[Forward Port] magento/magento2#12205: Stock inventory reindex bug. #25306
Conversation
(cherry picked from commit 20d7afb)
Hi @hostep. Thank you for your contribution
For more details, please, review the Magento Contributor Guide documentation. |
Thanks @hostep for the contribution! |
Hi @kalpmehta, thank you for the review.
|
✔️ QA Passed |
Hi @hostep, thank you for your contribution! |
(cherry picked from commit 20d7afb)
Description (*)
This is a forward port of https://github.com/magento-engcom/magento2ce/pull/1134 to Magento 2.3-develop (since this is a non-public PR, I can't see the discussion in there unfortunately)
It looks like this fix got included in Magento 2.2.5, but was forgotten to be forward ported to Magento 2.3
Fixed Issues (if relevant)
Manual testing scenarios (*)
bin/magento indexer:set-mode schedule
INSERT INTO cataloginventory_stock_cl(entity_id) SELECT a.entity_id FROM catalog_product_entity a INNER JOIN cataloginventory_stock_status b ON a.entity_id=b.product_id AND b.website_id=0 WHERE a.type_id='simple'
bin/magento indexer:status
to verify thisphp n98-magerun2.phar sys:cron:run indexer_update_all_views
, otherwise runbin/magento cron:run
bin/magento indexer:status
to verify that all scheduled updates were processedcataloginventory_stock_status
database table, there are 1046 in herebin/magento indexer:reindex cataloginventory_stock
cataloginventory_stock_status
database table, there are 2046 in hereNow repeat the same but with this PR applied, and you'll notice that in step 8 and 9 the correct thing happens and further steps are no longer needed
Questions or comments
Contribution checklist (*)