Closed maximumtiu closed 2 years ago
Recently, we had a speaker cancel their presentation, but the session had already been scheduled in the app.
In prod, I deleted the ProgramSession using the dedicated button in the UI to do so, but then got some errors when trying to view the schedule.
ProgramSession
This was because there was still a TimeSlot referencing the deleted ProgramSession.
TimeSlot
When deleting a ProgramSession, nullify the program_session_id on the related TimeSlot if applicable.
program_session_id
Also cleaned up some specs while I was in there.
Reason for Change
Recently, we had a speaker cancel their presentation, but the session had already been scheduled in the app.
In prod, I deleted the
ProgramSession
using the dedicated button in the UI to do so, but then got some errors when trying to view the schedule.This was because there was still a
TimeSlot
referencing the deletedProgramSession
.Changes
When deleting a
ProgramSession
, nullify theprogram_session_id
on the relatedTimeSlot
if applicable.Also cleaned up some specs while I was in there.