Skip to content

fix(bookings): PPT-2436 keep cancelled recurring occurrences when include_deleted is set - #387

Merged
camreeves merged 2 commits into
masterfrom
PPT-2436-recurring-deleted-instances
Sep 30, 2026
Merged

camreeves merged 2 commits into
masterfrom
PPT-2436-recurring-deleted-instances

Conversation

@camreeves

@camreeves camreeves commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

Fixes PPT-2436: cancel one occurrence of a recurring desk booking in Concierge and it drops out of the list on reload.

The bookings index passed the deleted flag into the include_deleted argument of Booking.expand_bookings!, so a request with include_deleted=true still lost every cancelled occurrence. It now passes include_deleted.

Anything that asks for include_deleted=true now gets cancelled occurrences marked deleted, the same way it already gets cancelled one-off bookings. Concierge report counts go up to match. The native app sends include_deleted=recurring, which reads as false, so it doesn't change.

Not covered here: cancelling a whole series still only shows the first occurrence. That needs a change in models and will be a separate PR.

The first commit adds the specs on their own and fails CI against the old code (run). With the fix it's 304 examples, 0 failures (run).

A cancelled occurrence of a recurring booking should come back, marked
deleted, when the list asks for include_deleted, and stay out otherwise.
…lude_deleted is set

The index passed the deleted query flag to Booking.expand_bookings! as its
include_deleted argument, so a list asking for include_deleted=true without
deleted=true dropped every cancelled occurrence of a recurring booking.
Concierge's desk list does exactly that, so a cancelled occurrence vanished
on reload.
@github-actions github-actions Bot added the type: bug something isn't working label Sep 30, 2026
@camreeves
camreeves marked this pull request as ready for review September 30, 2026 04:21
@camreeves
camreeves merged commit c68d85b into master Sep 30, 2026
11 checks passed
@camreeves
camreeves deleted the PPT-2436-recurring-deleted-instances branch September 30, 2026 04:21

@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.

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