Skip to content

Conversation

@thecristen
Copy link
Collaborator

Scope

Asana Ticket: [SF/UD] All Modes: "Service ended" message after last vehicle of the day

Implementation

At the point of converting predicted schedules into upcoming departures, once we remove past schedules we're left with future ones. And if there are no future ones... we can conclude that service has ended.

Screenshots

image

How to test

Go to a route+stop at which has ended, such as (likely) the 171.

@thecristen thecristen requested a review from a team as a code owner January 16, 2026 23:32
@thecristen thecristen requested a review from joshlarson January 16, 2026 23:32
@thecristen thecristen enabled auto-merge (squash) January 16, 2026 23:32
@thecristen thecristen changed the title Cbj/sf2.0/service ended feat(SF2.0/UpcomingDepartures): show service ended state Jan 16, 2026
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.

I like that the backend does this, and I'm pretty sure the fact that it short-circuits before rejecting :hidden departures means that this will Just Work™ for subway as well.

There's one test that's generating a warning. I can approve once that's cleared up.

@thecristen thecristen requested a review from joshlarson January 20, 2026 17:32
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