-
Notifications
You must be signed in to change notification settings - Fork 53
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
only show routes from current service week #1259
Conversation
# Conflicts: # package.json # yarn.lock
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to change the graphql queries
@daniel-heppner-ibigroup to fix the graphql mocks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it would be even better if we didn't rename the routes in the gql query
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like there might be an error in the fetchNearby
query!
@@ -436,11 +438,15 @@ export const fetchNearby = (position, radius) => { | |||
lon | |||
code | |||
gtfsId | |||
stopRoutes: routes (serviceDates: $currentServiceWeek) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm getting a "Unknown field argument" graphql error back when I try to view a stop
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This only works on the latest version of OTP. Are you testing against an older OTP version? I'm happy to delay merging this until newer OTP is more widespread
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh gotcha, yes the instance of OTP I was using to test looks like the only one of ours this would break! We can discuss that internally
Description:
Makes use of new graphql parameters to limit route and nearby results to current week
blocked waiting for otp-ui to be fixed