Skip to content

fix(bookings): PPT-2436 list a cancelled series when include_deleted is set - #388

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

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

Conversation

@camreeves

@camreeves camreeves commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

Second half of PPT-2436, after #387. Cancelling a whole recurring series in Concierge left only its first occurrence in the list, and later days showed nothing.

With include_deleted=true the bookings index now fetches cancelled series too, and sorts and counts them as expanded rows to match Booking#recurring_booking?(include_deleted) from models 9.117.1 (PlaceOS/models#331). Each occurrence in the period comes back marked deleted. Without include_deleted nothing changes.

Two pagination specs assumed a cancelled series comes back as one row, which is the behaviour being fixed, so they now expect its occurrences. One also mixes in a rejected series to keep a page of expanded and unexpanded rows.

The specs-only commit fails CI against the old code (run).

Temporary until the models change is released, then this becomes a normal
placeos-models version bump.
Cancelling a whole series should leave every occurrence in an include_deleted
list, marked deleted. The pagination specs now expect a cancelled series to
come back expanded, and mix in a rejected series to keep a page of expanded
and unexpanded rows.
…is set

The index only fetched a recurring series whose deleted_at was null, and
sorted and counted a deleted series as a single unexpanded row. With
include_deleted it now fetches cancelled series too and treats them as
expanded, matching Booking#recurring_booking?(include_deleted) in models,
so a cancelled series shows every occurrence in the period, marked deleted.
Replaces the temporary models branch override with the released version
that expands a cancelled series.
@github-actions github-actions Bot added the type: bug something isn't working label Sep 30, 2026

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Your trial has ended. Reactivate Greptile to resume code reviews.

@camreeves
camreeves merged commit 40c3f02 into master Sep 30, 2026
19 of 21 checks passed
@camreeves
camreeves deleted the PPT-2436-cancelled-series branch September 30, 2026 05:04
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