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

hotfix(Alerts.Disruptions.Subway): process alerts with no end datetime #2403

Merged
merged 2 commits into from
Feb 27, 2025

Conversation

thecristen
Copy link
Collaborator

I think this is everything needed to handle alerts configured as "until further notice", but I didn't want to recreate that alert and break dev-green/blue while people were using it to review :)

  • service_range_range has been updated to gracefully handle nil, and tests have been added for that
  • More creative formatting has been added to handle active periods with missing start or stop times.

@thecristen thecristen requested a review from a team as a code owner February 26, 2025 21:32
@thecristen
Copy link
Collaborator Author

Closing a stop on the Blue Line from today/9:34AM until further notice looks like this across the three components:

image image

@thecristen thecristen enabled auto-merge (squash) February 27, 2025 14:37
assert service_range_range(today, next_week) == [:today, :this_week, :next_week]
end

test "handles open end" do
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could be more descriptive in line with the actual assertion. Also, we should call it 'stop' rather than 'end.'

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good call, I've changed this to describe more directly what's happening.

@thecristen thecristen force-pushed the cbj/hotfix-planned-disruption-no-end-time branch from 8af7d8b to 5f2c060 Compare February 27, 2025 14:45
@thecristen thecristen enabled auto-merge (squash) February 27, 2025 14:48
@thecristen thecristen merged commit 06b033d into main Feb 27, 2025
17 checks passed
@thecristen thecristen deleted the cbj/hotfix-planned-disruption-no-end-time branch February 27, 2025 14:54
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