-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Remove legacy catalog_category_product_index query #40347
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
base: 2.4-develop
Are you sure you want to change the base?
Remove legacy catalog_category_product_index query #40347
Conversation
|
Hi @mohaelmrabet. Thank you for your contribution!
Allowed build names are:
You can find more information about the builds here For more details, review the Code Contributions documentation. |
|
@magento run all tests |
|
@magento run Static Tests |
|
@magento run Unit Tests |
|
@magento run all tests |
|
@magento run Functional Tests CE |
|
@magento run all tests |
Description (*)
This PR removes the problematic getProductsCountQuery() method that was querying the catalog_category_product_index table, which is always empty in modern Magento installations using store-segmented indexing.
Note: No changes were made to the constructor - backward compatibility is fully maintained through existing nullable parameters and ObjectManager fallbacks.
Fixed Issues (if relevant)
Manual testing scenarios (*)
Confirm that product counts are accurate for categories across different stores
Verify product counts respect website/store filtering
Contribution checklist (*)