Skip to content

Lev/feat/stale alert on subway status#3302

Open
lvachon1 wants to merge 25 commits into
mainfrom
lev/feat/stale_alert_on_subway_status
Open

Lev/feat/stale alert on subway status#3302
lvachon1 wants to merge 25 commits into
mainfrom
lev/feat/stale_alert_on_subway_status

Conversation

@lvachon1

@lvachon1 lvachon1 commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Scope

Asana Ticket: 🐬 Stale Symphony alert in subway current status

Implementation

Added a filter to remove stale? alerts from the subway status indicator on the homepage.

This builds upon the work already done in #3281

Screenshots

Dev-blue showing stale alert on green line

Screenshot 2026-06-30 at 1 29 16 PM Screenshot 2026-06-30 at 1 35 23 PM

Local only showing the fresh blue line alert

Screenshot 2026-06-30 at 1 29 10 PM Screenshot 2026-06-30 at 1 35 35 PM

How to test

This is hard. We cannot create alerts with start times in the past, so you have to find one somewhere in the wild. Tappan street seems to be the best test case at the moment.

@lvachon1 lvachon1 requested a review from a team as a code owner June 30, 2026 17:39
@lvachon1 lvachon1 requested a review from thecristen June 30, 2026 17:39
@lvachon1 lvachon1 marked this pull request as draft July 1, 2026 17:34
@lvachon1 lvachon1 marked this pull request as ready for review July 9, 2026 17:03

@thecristen thecristen left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I'm curious if, philosophically, this new piece of logic is better off in Dotcom.SystemStatus.status_alert?/2 -- that function is currently used to filter alerts before passing them into the function this PR modified.

@lvachon1

Copy link
Copy Markdown
Contributor Author

I'm curious if, philosophically, this new piece of logic is better off in Dotcom.SystemStatus.status_alert?/2 -- that function is currently used to filter alerts before passing them into the function this PR modified.

I tried that out and it should work, but looks like it'll also affect commuter_rail_alert_groups() in alerts.ex.

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