Skip to content

Only show later-today delays if they are single tracking#3000

Open
jlucytan wants to merge 3 commits intomainfrom
jlt/alerts/upcoming-delay-status
Open

Only show later-today delays if they are single tracking#3000
jlucytan wants to merge 3 commits intomainfrom
jlt/alerts/upcoming-delay-status

Conversation

@jlucytan
Copy link
Contributor

@jlucytan jlucytan commented Mar 6, 2026

Scope

Asana Ticket: Don't show later-today delays in current subway status

Implementation

Filters out delays from current Subway Status unless they are either currently active, or due to single tracking.

Screenshots

Before
image

After
image

Future delays still appear as "planned work"
image

How to test

Visit the home page and the alerts page while having relevant alerts created. The alerts page seems to cache the alerts locally so you may have to restart the server.

@jlucytan jlucytan requested a review from a team as a code owner March 6, 2026 00:22
@jlucytan jlucytan requested a review from thecristen March 6, 2026 00:22
@jlucytan jlucytan force-pushed the jlt/alerts/upcoming-delay-status branch from a12f2bd to bbb2d0c Compare March 6, 2026 01:22
Copy link
Contributor

@joshlarson joshlarson left a comment

Choose a reason for hiding this comment

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

This appears to be filtering out later-today alerts in general, but we only want to be filtering out later-today delays (alert.effect == :delay). Other alert types, like :suspension, :shuttle, etc, should still show up even if they're later in the day.

@jlucytan
Copy link
Contributor Author

jlucytan commented Mar 6, 2026

@joshlarson updated the code, test is flaky but I haven't been able to hunt down the source, although some of it might've been due to having the server running while running the tests? Got way fewer failures for some reason after turning it off anyway 🙃

@jlucytan jlucytan requested a review from joshlarson March 6, 2026 18:50
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