Skip to content

feat: add pagination to waiting queue - #67

Open
NIKHIL2K5 wants to merge 1 commit into
NxtLabTech:mainfrom
NIKHIL2K5:feat/queue-pagination
Open

NIKHIL2K5 wants to merge 1 commit into
NxtLabTech:mainfrom
NIKHIL2K5:feat/queue-pagination

Conversation

@NIKHIL2K5

Copy link
Copy Markdown

What changed?

Added optional limit and offset query parameters to the waiting queue endpoint (GET /api/sessions/{id}/queue). Added validation for pagination values, preserved the existing queue ordering and default behavior, added repository and service tests, and updated the README documentation.

Which issue does this address?

Fixes #2

How was it tested?

  • composer test (24 tests, 54 assertions passed)
  • vendor\bin\phpunit tests\Repository\DoubtRepositoryTest.php (8 tests, 18 assertions passed)
  • vendor\bin\phpunit tests\Service\DoubtServiceTest.php (12 tests, 27 assertions passed)
  • git diff --check (passed)
  • Verified that invalid pagination values return HTTP 400 and unknown sessions return HTTP 404 through the existing exception handlers.

@NIKHIL2K5 NIKHIL2K5 left a comment

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Hi maintainers! 👋

I've implemented pagination for the waiting queue endpoint as requested in Issue #2.

The changes are complete, and all 24 tests pass with 54 assertions. I've also updated the README and added tests for pagination and input validation.

Could you please review the PR and let me know if any changes are needed? Thank you for your time and feedback!

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.

Add limit and offset parameters to the waiting queue endpoint

1 participant