-
Notifications
You must be signed in to change notification settings - Fork 9.4k
[TASK] Solve issue #14966 - Disabling product does not remove it from… #15019
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
[TASK] Solve issue #14966 - Disabling product does not remove it from… #15019
Conversation
… the flat index
@@ -41,7 +48,8 @@ public function __construct( | |||
TableBuilder $tableBuilder, | |||
FlatTableBuilder $flatTableBuilder, | |||
Indexer $flatItemWriter, | |||
Eraser $flatItemEraser | |||
Eraser $flatItemEraser, | |||
MetadataPool $metadataPool |
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.
@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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@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 Product
is set toYes
.bin/magento index:reindex catalog_product_flat
.X
.catalog_product_flat_1
withentity_id = X
. If not, you've done something wrong.catalog_product_flat_1
still contains an entry withentity_id = X
.Expected result
catalog_product_flat_1
should contain no entry withentity_id = X
.Actual result
catalog_product_flat_1
contains an entry withentity_id = X
.Contribution checklist