Repository navigation
Hotel inactive rooms readonly - #4605
Merged
Merged
Conversation
bitbyt3r
approved these changes
Sep 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
When a room expires or is cancelled, the RoomAssignment row stays on file with status EXPIRED or CANCELLED. The attendee rooms pages treated it as a live booking. The list showed an Edit button, and the room page offered Save dates, special requests, billing address, invites, and a red "Card due by" line with an Add a card button that then failed. Attendees likely read this as the room still being theirs, even with the expired status.

Only the card flow refused these rooms. Dates, rewards number, special requests, billing address, invites and occupant changes all wrote to the dead row. No inventory was double-booked, because capacity counts only ASSIGNED and SECURED rows, but the page misled people and would likely result in support tickets from attendees
Change
Everything keys off
RoomAssignment.is_live, not a list of statuses, so a future non-live status is covered without edits here.room_actionrefuses non-live rooms after the ownership check.leave_roomopts out withallow_inactive=Trueso an occupant can take themselves off a released room.edit_roomandcopy_occupantscheckis_livedirectly._resolve_assignmentapplies itsstatusesfilter only on its fallback path; an explicitassignment_idskips it, soedit_roomnever filtered.redeem_codeandinvitetreat an invite to a non-live room as expired.The devtools lottery seeder gains a curated scenario keyed on
inactive.rooms@example.com. That attendee holds a secured room, an expired room with a past deadline, a guest and a pending invite (codeDEV-EXPIRED-ROOM), a cancelled room, and a secured suite with a cancelled connector.only.expired@example.comholds only an expired room, with the first attendee as its guest.expired.guest@example.comis the guest in the first expired room.