fix: only show bookable time slots in availability endpoint #2

Merged
luke merged 1 commit from main into production 2026-08-06 10:33:22 +01:00
Owner

Commit c5d1304 removed the HasStandardAvailability filter from
GET /api/availability, so every schedule slot was rendered as clickable
even when ResDiary could not take the booking. Clicking an unbookable
slot failed at /api/book with an error. Affects all restaurants.

Restore the filter so only genuinely bookable slots are exposed, and add
route-level regression tests (mixed availability, all-unavailable, and
param passthrough).

Commit c5d1304 removed the HasStandardAvailability filter from GET /api/availability, so every schedule slot was rendered as clickable even when ResDiary could not take the booking. Clicking an unbookable slot failed at /api/book with an error. Affects all restaurants. Restore the filter so only genuinely bookable slots are exposed, and add route-level regression tests (mixed availability, all-unavailable, and param passthrough).
fix: only show bookable time slots in availability endpoint
All checks were successful
Deploy / test (push) Has been skipped
Deploy / build-and-push (push) Has been skipped
Deploy / deploy-test (push) Has been skipped
Deploy / deploy-production (push) Has been skipped
Deploy / build-dev (push) Successful in 2m19s
Deploy / deploy-dev (push) Successful in 24s
6ed69cc0a0
Commit c5d1304 removed the HasStandardAvailability filter from
GET /api/availability, so every schedule slot was rendered as clickable
even when ResDiary could not take the booking. Clicking an unbookable
slot failed at /api/book with an error. Affects all restaurants.

Restore the filter so only genuinely bookable slots are exposed, and add
route-level regression tests (mixed availability, all-unavailable, and
param passthrough).
luke merged commit 89cfe8058b into production 2026-08-06 10:33:22 +01:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gsylabsgg/tabl.gg!2
No description provided.