Skip to content

Conversation

@cammonro
Copy link
Collaborator

@cammonro cammonro commented Nov 4, 2025

Summary
This PR aims to provide a more robust pagination mechanism for backend search:

  • Revised DI for virtual collections through the algolia engine
  • Added TotalRecordsResolver
  • Refactored QueryMapper and DocumentMapper
  • Introduced new DTOs for request and response handling
  • Fixed and updated impacted unit tests

NOTE: This depends on changes from core module under algolia/algoliasearch-magento-2#1860

Result
image

image

@cammonro cammonro requested a review from damcou November 4, 2025 06:23
damcou
damcou previously approved these changes Nov 5, 2025
Copy link
Collaborator

@damcou damcou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice job ! 🙌

Tests are passing and I think I get most of the code, had a few comments but nothing blocking, this can be tackled later in your next ticket.

This still hard to guess what belongs to our codebase and what is still from the core modules with all the mocked stuff but we are on a good path I believe :)

@cammonro
Copy link
Collaborator Author

cammonro commented Nov 5, 2025

Yeah the mock stuff is just a frame of reference to help me understand what I actually need to build. I will rip all that out at the end.

@cammonro
Copy link
Collaborator Author

cammonro commented Nov 5, 2025

@damcou Thanks for the review! I've made some updates based on your feedback if you wouldn't mind please having another look.

Copy link
Collaborator

@damcou damcou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀 🙌

Thanks for making the changes !

@cammonro cammonro merged commit af0b43b into main Nov 6, 2025
@cammonro cammonro deleted the feat/MAGE-1459-total-records-resolver branch November 6, 2025 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants