Skip to content

fix: Full closure at Symphony showing as partial in reconstructed_alert#3102

Merged
robbie-sundstrom merged 2 commits into
mainfrom
rs/fix-symphony-alert
Jun 10, 2026
Merged

fix: Full closure at Symphony showing as partial in reconstructed_alert#3102
robbie-sundstrom merged 2 commits into
mainfrom
rs/fix-symphony-alert

Conversation

@robbie-sundstrom

@robbie-sundstrom robbie-sundstrom commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Asana task: Bug: "skipping n platforms" alert message

For the reconstructed alert, we're not filtering down to just Subway platforms before checking if it's a partial closure.

image

@robbie-sundstrom robbie-sundstrom requested a review from a team as a code owner June 9, 2026 21:43
# finds the corresponding platform names for those child stops included.
with [informed_parent_station] <- Alert.informed_parent_stations(alert),
[_ | _] = child_platforms <- informed_parent_station.stop.child_stops,
[_ | _] = child_platforms <-

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.

Is there a test that we can write for this change that covers filtering to subway/light rail platforms here before determining the closure type?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

yes, but I wanted to get this fix in quickly since this alert is active. Could add a quick unit test for this case later

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Added modifications to the tests here: #3103

@robbie-sundstrom robbie-sundstrom merged commit ead5925 into main Jun 10, 2026
18 checks passed
@robbie-sundstrom robbie-sundstrom deleted the rs/fix-symphony-alert branch June 10, 2026 13:30
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