[TASK] Solve issue #14966 - Disabling product does not remove it from…#15019
[TASK] Solve issue #14966 - Disabling product does not remove it from…#15019magento-engcom-team merged 5 commits into2.2-developfrom
Conversation
… the flat index
| Indexer $flatItemWriter, | ||
| Eraser $flatItemEraser | ||
| Eraser $flatItemEraser, | ||
| MetadataPool $metadataPool |
There was a problem hiding this comment.
@lewisvoncken, due to Magento backward-compatible guide we can't add a new required dependency to the constructor.
There was a problem hiding this comment.
@VladimirZaets thanks for the feedback. The dependency incorrect and I have just removed it.
|
Hi @lewisvoncken Thanks |
|
next time I will use the fork. Thanks for looking into this pull request! |
|
Hi @lewisvoncken. Thank you for your contribution. Please, consider to port this solution to 2.3 release line. |
… the flat index
Description
When you disable a product it should be removed from the flat table
Fixed Issues (if relevant)
Manual testing scenarios
bin/magento cron:run).Use Flat Catalog Productis set toYes.bin/magento index:reindex catalog_product_flat.X.catalog_product_flat_1withentity_id = X. If not, you've done something wrong.catalog_product_flat_1still contains an entry withentity_id = X.Expected result
catalog_product_flat_1should contain no entry withentity_id = X.Actual result
catalog_product_flat_1contains an entry withentity_id = X.Contribution checklist