Skip to content

fix(booking): PPT-2436 expand a cancelled series when include_deleted is set - #331

Merged
camreeves merged 2 commits into
masterfrom
PPT-2436-cancelled-series
Sep 30, 2026
Merged

camreeves merged 2 commits into
masterfrom
PPT-2436-cancelled-series

Conversation

@camreeves

@camreeves camreeves commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

Part of PPT-2436. Cancelling a whole recurring series in Concierge left only its first occurrence in the list, because expand_bookings! never expanded a deleted series.

  • recurring_booking? takes include_deleted, and expand_bookings! passes it through, so a cancelled series expands into cancelled occurrences when the caller asks for deleted bookings. The default is unchanged for every other caller.
  • hydrate_booking keeps the series' cancellation when an occurrence's own override isn't deleted, e.g. one that was checked in before the series was cancelled. That also means staff-api refuses check-in and approval on an occurrence of a cancelled series.

staff-api needs a matching query change, in a PR that follows this release.

The specs-only commit fails CI against the old code (run). With the fix it's 779 examples, 0 failures (run).

A cancelled series should expand into cancelled occurrences when the caller
asks for deleted bookings, and an occurrence of a cancelled series should
hydrate as cancelled even when its own override is not.
… is set

expand_bookings! only expanded series that were not deleted, so a list asking
for deleted bookings got a cancelled series back as one row for its first
occurrence. recurring_booking? takes include_deleted and expand_bookings!
passes it through. hydrate_booking keeps the series' cancellation when an
occurrence's override is not itself deleted, so an occurrence of a cancelled
series (for example one checked in earlier) never reads as live.
@github-actions github-actions Bot added the type: bug something isn't working label Sep 30, 2026
@camreeves
camreeves merged commit 1a013a5 into master Sep 30, 2026
8 checks passed
@camreeves
camreeves deleted the PPT-2436-cancelled-series branch September 30, 2026 04:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: bug something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant