Skip to content

refactor: implement pagination - #1672

Open
JohnVillalovos wants to merge 1 commit into
developfrom
jlvillal/pagination
Open

refactor: implement pagination#1672
JohnVillalovos wants to merge 1 commit into
developfrom
jlvillal/pagination

Conversation

@JohnVillalovos

Copy link
Copy Markdown
Collaborator
  • Replace null parameters with actual page number and size
  • Use page->GetPageNumber() and page->GetPageSize() for pagination
  • Improves performance by limiting results per request

- Replace null parameters with actual page number and size
- Use page->GetPageNumber() and page->GetPageSize() for pagination
- Improves performance by limiting results per request
Copilot AI lite review requested due to automatic review settings August 28, 2026 20:54

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR implements consistent pagination across several schedule/user/resource/admin listing presenters by replacing null paging parameters with values from the page (GetPageNumber() / GetPageSize()), reducing unbounded queries and aligning with PageableDataStore’s paging behavior.

Changes:

  • Passes explicit page number + page size into schedule list retrieval (viewer + admin).
  • Passes explicit page size into user/group/resource/reservation/blackout list retrieval, enabling LIMIT/OFFSET paging instead of “all results”.
  • Minor array formatting adjustments for consistency/readability.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
File Description
Presenters/ViewSchedulesPresenter.php Uses page-driven paging when loading schedules for the schedule viewer.
Presenters/Admin/ManageUsersPresenter.php Uses page size for user list paging; minor array formatting cleanup.
Presenters/Admin/ManageSchedulesPresenter.php Uses page size for schedule list paging in admin view.
Presenters/Admin/ManageResourcesPresenter.php Uses page size for resource list paging.
Presenters/Admin/ManageReservationsPresenter.php Uses page size for reservation list paging; minor array formatting cleanup.
Presenters/Admin/ManageGroupsPresenter.php Uses page size for group list paging.
Presenters/Admin/ManageBlackoutsPresenter.php Uses page size for blackout list paging.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

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