Title: Feat: Implement Advanced Pagination and Filtering System - #406
Merged
Conversation
|
@ustaxs Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
10 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description:
This pull request introduces a comprehensive and reusable system for pagination, filtering, and sorting to efficiently handle large datasets. The implementation supports both traditional offset-based pagination and modern cursor-based pagination for improved performance and scalability.
Key Features:
Reusable Pagination Module: Created a new module at src/common/pagination containing generic DTOs (PageDto, PageMetaDto, PageOptionsDto) that can be used across the application.
Closes Event Bus and Event-Driven Architecture #401
Offset & Cursor Pagination:
Supports standard page and limit query parameters for offset pagination.
Adds cursor support for efficient, stateless pagination over large or real-time datasets.
Closes Message Queue and Job Processing System #402
Flexible Filtering & Sorting:
Allows filtering results via a filter query parameter (e.g., ?filter=some_value).
Enables single and multi-column sorting with direction control (e.g., ?sort=username:ASC).
Closes Request Validation and Data Sanitization Framework #403
Implementation Example: The UsersModule has been refactored to use the new system, with the findAll endpoint in UsersController now accepting pagination, filtering, and sorting parameters.
Closes Advanced Pagination and Filtering System #404