Skip to content

Fix ical nil event data#63

Open
sikesbc wants to merge 2 commits intomainfrom
fix-ical-nil-event-data
Open

Fix ical nil event data#63
sikesbc wants to merge 2 commits intomainfrom
fix-ical-nil-event-data

Conversation

@sikesbc
Copy link
Copy Markdown

@sikesbc sikesbc commented Mar 12, 2026

What this PR does:

  • Fixes a crash in iCal calendar generation when events have nil time, event_type, or room data (seen
    in legacy 2021 conference data).

Include screenshots, videos, etc.

  • N/A: backend fix, no UI changes.

Who authored this PR?
@sikesbc

How should this PR be tested?

  • No deploy needed. This is a helper-level fix.
  • New specs in spec/helpers/conference_helper_spec.rb cover the four cases: nil event_type, nil time, nil room with a
    venue, and valid events.
  • Edge cases to watch: any conference with incomplete event data (missing schedules, rooms, or event types) should now
    generate iCal output without errors instead of raising NoMethodError.

Are there any complications to deploying this?

  • No migrations or data changes, just a guard clause and a safe navigation operator.

sikesbc added 2 commits March 4, 2026 09:01
Tests exercise icalendar_proposals with nil event_type, nil time,
and nil room — all of which currently raise NoMethodError.
Skip events with nil time or event_type in icalendar_proposals,
and use safe navigation for room name to avoid NoMethodError
when generating .ics calendar exports.
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.

1 participant