Skip to content

feat: add RSVP close time to workshops#2691

Open
mroderick wants to merge 5 commits into
masterfrom
feature/rsvp-close-time-clean
Open

feat: add RSVP close time to workshops#2691
mroderick wants to merge 5 commits into
masterfrom
feature/rsvp-close-time-clean

Conversation

@mroderick

@mroderick mroderick commented Jul 7, 2026

Copy link
Copy Markdown
Collaborator

Fixes #2687

What

Add RSVP closing date/time to workshops, mirroring the existing "Open RSVPs at" pattern. Organisers can set when RSVPs close automatically — nil means RSVPs stay open until the workshop starts.

image

Changes

  • Model: rsvp_closes_at virtual attrs (rsvp_close_local_date/rsvp_close_local_time) via datetime_from_fields, timezone-aware getter, validation that close time is before workshop start
  • Controller: WorkshopInvitationController#accept gated by rsvp_available?; admin attendance management unaffected
  • Form: close date/time fields in "RSVP Timing" card with pickadate selectors, side-by-side column layout
  • Detail page: shows RSVP close time on admin workshop view when set
  • Form layout: improved open date/time fields to side-by-side columns with clear labels and card title

Verification

  • rsvp_closes_at nil → RSVPs stay open (current default)
  • Close time before workshop start → valid
  • Close time after workshop start → validation error
  • RSVPs closed → member sees "RSVPs for this workshop are now closed."
  • Organisers bypass via admin invitation management

@mroderick mroderick force-pushed the feature/rsvp-close-time-clean branch 3 times, most recently from e07a43f to 6e34a20 Compare July 7, 2026 12:27
mroderick added 5 commits July 7, 2026 14:28
The rsvp_closes_at column already exists on the workshops table
(migration 20150211023345, added in 84f55d0 and later renamed from
rsvp_close_time). This commit adds the model layer: virtual attributes,
timezone-aware getter, before_validation callback, and validation that
close time is before the workshop start.
@mroderick mroderick force-pushed the feature/rsvp-close-time-clean branch from 6e34a20 to 539d9fb Compare July 7, 2026 12:29
@mroderick mroderick marked this pull request as ready for review July 7, 2026 12:31
@mroderick mroderick requested a review from olleolleolle July 7, 2026 12:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

London RSVPs don't close automatically at 3pm

1 participant