Skip to content
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

Enhance CollectionService to support cursor-based pagination #1355

Draft
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

SlyRock
Copy link
Contributor

@SlyRock SlyRock commented Jan 23, 2025

closes #568

…th beforeEq and afterEq parameters. Added error handling for invalid cursor requests and improved item retrieval logic. Updated response structure to include cursor URIs for navigation.
@SlyRock SlyRock marked this pull request as draft January 23, 2025 17:19
- Modify collection service to support flexible pagination
- Remove totalItems from collection tests
- Update pagination test cases to use cursor-based navigation
- Adjust collection retrieval and sorting logic
- Add more flexible item retrieval conditions
- Expand collection test suite with comprehensive pagination scenarios
- Add edge case and error handling tests for collection pagination
- Improve test structure with more granular test groups
…elude to refactoring the get method for a better readability and maintainability.

- Extract collection get logic to a separate file (collection-get.js)
- Import getAction from new external file
- Add getValueFromDataType to methods
- Simplify collection service structure
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.

OrderedCollection: persist items order
1 participant