Skip to content

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

Open
lvachon1 wants to merge 3 commits into
mainfrom
lev/feat/hide_stale_alerts_on_departures
Open

[Symphony]: Hide long-term alerts in departures pages#3428
lvachon1 wants to merge 3 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.
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