Skip to content

fix(schedule): list every page of a day's bookings on Your Bookings - #562

Merged
MrYuion merged 1 commit into
developfrom
fix/your-bookings-paging
Oct 12, 2026
Merged

MrYuion merged 1 commit into
developfrom
fix/your-bookings-paging

Conversation

@camreeves

Copy link
Copy Markdown
Contributor

What

Your Bookings read one page of GET /bookings per type and day. staff-api pages at 100 rows and the page asks for cancelled rows too, so a user with a hundred cancelled bookings on a day could not see a live one past them. The room-as-bookings path (app.events.use_bookings) on the same page had the same limit.

Both now go through queryAllBookings, which already follows the API's pagination (X-Total-Count, up to 50 pages) and is what the concierge reports use.

Why

The e2e row YB-12 (bookings-limit on #497) creates 105 cancelled bookings and one live one on a day and asserts the live one is listed. On any fresh database the live booking has the highest id and sits past the first page, so the row failed on every cold stack and on the runner (3 of 3 in run 38193336513).

Verification

  • nx test bookings: 457 passed. nx test workplace: 422 passed, including a new case that two pages of a day are merged, and the visitor-filter case now stubs the query layer the service reads through.
  • nx lint workplace: 0 errors (75 pre-existing warnings). nx build workplace: builds.
  • Live: on a fresh local stack (current latest images) the YB-12 row bookings-limit fails before this change and passes with it (9.9 s), run from the test(e2e): workplace and concierge [2026-09-18] #497 branch against a dev server built from this branch.

The schedule read one page of GET /bookings per type and day. staff-api pages
at 100 rows, and the page asks for cancelled rows too, so a user with a
hundred cancelled bookings on a day could not see a live one past them. The
same applied to the room-as-bookings path when app.events.use_bookings is set.

Both now go through queryAllBookings, which follows the pagination the API
already provides. Found by the e2e row YB-12 (bookings-limit), which fails on
every fresh database.
@vercel

vercel Bot commented Oct 12, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
frontend-templates Ignored Ignored Oct 12, 2026 3:13am UTC

@MrYuion
MrYuion merged commit a67e643 into develop Oct 12, 2026
37 checks passed
@MrYuion
MrYuion deleted the fix/your-bookings-paging branch October 12, 2026 03:14
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.

2 participants