Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: show alert instead of trips if both exist #125

Merged
merged 1 commit into from
Apr 11, 2024

Conversation

boringcactus
Copy link
Member

Summary

Ticket: Investigate: schedules appearing during stop closure alert

Since alerts are manually maintained in real time, they are more trustworthy than schedules or predictions, so an alert that indicates no service at the stop should override old or automated claims that there is in fact service at that stop.

Testing

Manually verified that the stop in the Asana ticket correctly shows as closed now, and added a new unit test that fails with the old implementation and succeeds with the new implementation.

@boringcactus boringcactus requested a review from a team as a code owner April 10, 2024 20:20
@boringcactus boringcactus requested a review from BrandonTR April 10, 2024 20:20
@boringcactus boringcactus merged commit 671b0a8 into main Apr 11, 2024
5 checks passed
@boringcactus boringcactus deleted the mth-alerts-priority branch April 11, 2024 15:40
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.

2 participants