Skip to content

Implement pagination limits and validation tests for DTOs#321

Merged
RUKAYAT-CODER merged 1 commit into
rinafcode:mainfrom
Ahmedscreativeverse:Pagination-Limits
Apr 24, 2026
Merged

Implement pagination limits and validation tests for DTOs#321
RUKAYAT-CODER merged 1 commit into
rinafcode:mainfrom
Ahmedscreativeverse:Pagination-Limits

Conversation

@Ahmedscreativeverse
Copy link
Copy Markdown
Contributor

closes #295

Changes made
Updated pagination.dto.ts

Switched page-size defaults to APP_CONSTANTS.DEFAULT_PAGE_SIZE
Switched max page-size validation to APP_CONSTANTS.MAX_PAGE_SIZE
Added explicit validation message for max page size
Updated pagination.util.ts

Replaced hard-coded pagination defaults with APP_CONSTANTS.DEFAULT_PAGE_SIZE
Updated app.constants.ts

Clarified MAX_PAGE_SIZE as the maximum page size for pagination
Added documentation

Added a README note: pagination is limited to a maximum page size of 100 items per request
Added regression coverage

Created pagination.dto.spec.ts to verify DTO validation for maximum page size

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented Apr 23, 2026

@Ahmedscreativeverse 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! 🚀

Learn more about application limits

@RUKAYAT-CODER RUKAYAT-CODER merged commit 484d8f6 into rinafcode:main Apr 24, 2026
3 of 8 checks passed
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.

Pagination Limits

2 participants