-
Notifications
You must be signed in to change notification settings - Fork 340
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
[BUG] ES 2.7 M 2.3 InventoryData loads all products #1223
Comments
Created two slightly different pull requests since there was some room for improvement that wasn't directly related to fixing the bug. Up to the maintainers to merge the one they want. |
Hello @Swahjak, I'll look into it. I don't know why the issue didn't popped up. I'll close your second PR, it actually breaks MSI support. Regards, |
Hi @rbayet our catalog size is roughly 8000 sku's. But anything > 1000 products (batch size) should have this problem. Why would the second PR break MSI? It's the same as the original query, but removes the unnecessary dependency on |
Hello @Swahjak, OK, I'll look into it. See my comments in the second PR (#1225 (comment)).
versus
|
@rbayet Ah, Magento always has some trick up its sleeve to throw you off 😂 never expect the obvious. It's still a riddle to me as to why they are so keen on the SKU being used for everything. |
@Swahjak concerning the main issue, it's indeed quite obvious on the sample data with a batch size of 10. With the default batch size of 1000 and the sample data, something funny happens : the only products with an indexed "name" attribute are the 181 visible products (simple, bundle, configurable), while the affected products are all the "not visible individually" products. Good catch, thanks for the report ! Regards, |
Re-opened for visibility until 2.7.1 actual release. |
Fixed by PR #1224 |
Preconditions
Magento Version : 2.3
ElasticSuite Version : 2.7
Environment : develop / production
Third party modules :
Steps to reproduce
Expected result
Actual result
Commit 010f0a8#diff-59575d408d4bffc1107134de0085acdaL86 addresses multi inventory support but removes the filter on product ids.
The variable $productIds is never used. This causes the index to overwrite itself because it loads ALL product.
Smile\ElasticsuiteCatalog\Model\ResourceModel\Product\Indexer\Fulltext\Datasource\InventoryData
The text was updated successfully, but these errors were encountered: