-
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
Catalog Pagination not working for custom reindex or bin/magento commands #35422
Comments
Hi @andrewdaluz. Thank you for your report.
Make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, Add a comment to the issue:
For more details, review the Magento Contributor Assistant documentation. Add a comment to assign the issue: To learn more about issue processing workflow, refer to the Code Contributions.
🕙 You can find the schedule on the Magento Community Calendar page. 📞 The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, join the Community Contributions Triage session to discuss the appropriate ticket. ✏️ Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel |
Hi @engcom-November. Thank you for working on this issue.
|
Hi @andrewdaluz |
✅ Jira issue https://jira.corp.adobe.com/browse/AC-6033 is successfully created for this GitHub issue. |
✅ Confirmed by @engcom-November. Thank you for verifying the issue. |
Preconditions (*)
Steps to reproduce (*)
Create a new Reindex Class or a new Command for bin/magento
In that script you run the filtering with searchCriteria with Pagination
The pagination or iteration to filter per page goes into an infinite loop because after the last page it's returning the result of the first page.
Expected result (*)
Actual result (*)
REFERENCE: The issue is caused mainly by this Plugin https://github.com/magento/magento2/blob/2.4-develop/app/code/Magento/Theme/Plugin/Data/Collection.php
I'm wondering if we should use only ElasticSearch collection instead of productRepository filters? The Plugin seems very confusing and it may cause considerable issues I am in doubt why I couldn't find any reported issue since this plugin was introduced on version 2.4.1 as far as I could see on GitHub history.
Commit reference: 663f023
The text was updated successfully, but these errors were encountered: