Resolve inability to schedule events #3244
Open
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.
Checklist
master
branch.Short description of what this resolves
When dragging an unscheduled event onto a time slot, the event fails to be scheduled. Rails throws:
Details
To schedule an event, the editor must make a different kind of request depending on whether the event is already scheduled. This information is encoded in
event_schedule_id
as:""
(empty string) orundefined
In disagreement with this encoding, the editor currently tests for inequality to
null
, a condition that always evaluates to true, so events are always determined to be already scheduled, resulting in the incorrect kind of request being made when scheduling nonscheduled events.Changes proposed in this pull request
Since the encoding used correlates with truthiness, test for that instead.
Concerns
I have low confidence in my understanding of this. This bug appears to prevent the scheduling of events, a critical feature of OSEM, yet I don’t see any prior reports about it. How have conferences been scheduling events?