-
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
MAGETWO-84414 indexer DefaultStock #14139
Conversation
|
Hello @m-milewski. Please, consider fixing the failing integration tests. Thank you |
@rogyar I fixed fails in integration tests |
$this->deleteOldRecords($entityIds); | ||
$this->_updateIndexTable($data); | ||
|
||
if (is_array($data) && !empty($data)) { |
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.
If we are considering fix for the following issue #12205, it's already fixed withing a scope of 2.2-develop. It should be enough to remove all records at the very beginning of the index update operation without performing a separate delete in a loop.
Please, check the latest commit here https://github.com/magento/magento2/blob/2.2-develop/app/code/Magento/CatalogInventory/Model/ResourceModel/Indexer/Stock/DefaultStock.php for the clarification.
Thank you
@m-milewski , I am closing this PR now due to inactivity. |
Description
Deleting old records before each update index table.
Fixed Issues (if relevant)
Manual testing scenarios