Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

trip.stoptimesForDate in the GTFS GraphQL API doesn't work without serviceDate for trips that don't happen today #6475

Open
optionsome opened this issue Feb 20, 2025 · 1 comment
Assignees

Comments

@optionsome
Copy link
Member

optionsome commented Feb 20, 2025

Expected behavior

Stop times would be always returned.

Observed behavior

Stop times are not returned if the trip doesn't run the date when the information is queried.

This regression seems to originate from #6245.

Version of OTP used (exact commit hash or JAR name)

2.x

Steps to reproduce the problem

  1. Run the following query on some trip that isn't on service today:
{
  trip(id: "<some trip>") {
    stoptimesForDate {
      realtimeState
    }
  }
}
@tkalvas
Copy link
Contributor

tkalvas commented Feb 21, 2025

I made a quick fix in #6480 but I don't really understand what Michael's change means in the larger scale of things, so maybe someone can verify.

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

No branches or pull requests

2 participants