-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: handle unscheduled commuter rail departures
The commuter rail departures widget made the assumption that there would never be a departure that had a prediction but no matching schedule. We have observed that this isn't always the case. Adds handling of a `nil` schedule to the commuter rail departures widget. The only thing relying on a present schedule in `serialize_departure/5` was calculating if a departure was delayed. If there is no schedule we do not flag the departure as delayed; otherwise, the delayed calculation remains unchanged.
- Loading branch information
1 parent
0180877
commit 0fb3ffd
Showing
4 changed files
with
136 additions
and
14 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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