Skip to content

[Symphony]: Hide long-term alerts in departures pages - #3428

Merged
lvachon1 merged 6 commits into
mainfrom
lev/feat/hide_stale_alerts_on_departures
Aug 27, 2026
Merged

[Symphony]: Hide long-term alerts in departures pages#3428
lvachon1 merged 6 commits into
mainfrom
lev/feat/hide_stale_alerts_on_departures

Conversation

@lvachon1

@lvachon1 lvachon1 commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

Scope

Asana Ticket: 🐬 Hide long-term alerts in departures pages

Implementation

Added function to filter out stale alerts that don't target this stop specifically

Screenshots

Dev at Hynes

Screenshot 2026-08-18 at 1 16 58 PM

Local at Hynes

Screenshot 2026-08-18 at 1 17 15 PM

Local at Symphony

Screenshot 2026-08-18 at 1 17 22 PM

How to test

http://localhost:4001/departures?route_id=Green&direction_id=1&stop_id=place-hymnl - Confirm that the Symphony closure alert is gone for other stops on the route

http://localhost:4001/departures?route_id=Green&direction_id=1&stop_id=place-symcl - Confirm that for Symphony itself the alert still shows up

@lvachon1
lvachon1 requested a review from a team as a code owner August 18, 2026 17:19
@lvachon1
lvachon1 requested a review from jlucytan August 18, 2026 17:19

@joshlarson joshlarson left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The feature looks good (I think), but I think it would be worth it to add a few tests to the alerts section of the schedule finder live tests validating that this behaves the way we want.

@lvachon1
lvachon1 requested a review from joshlarson August 18, 2026 20:10
…re no longer relevant. New tests will be written once the new logic is in place. The structure of the main fix should still be fne.

@joshlarson joshlarson left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I know I'm a broken record about this kind of thing, but I do think we should have a test that validates that the stale alert doesn't show up typically (and a test that validates that it does show up on the Symphony page, and that other station closures do show up, etc).

Comment thread test/dotcom_web/live/schedule_finder_live_test.exs
Comment thread test/dotcom_web/live/schedule_finder_live_test.exs
Comment thread test/dotcom_web/live/schedule_finder_live_test.exs
@lvachon1
lvachon1 requested a review from joshlarson August 25, 2026 16:04
@lvachon1
lvachon1 merged commit f369a1b into main Aug 27, 2026
26 checks passed
@lvachon1
lvachon1 deleted the lev/feat/hide_stale_alerts_on_departures branch August 27, 2026 13:22
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.

3 participants