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

GraphQL Trip Stop Sequence Support #604

Merged

Conversation

miles-grant-ibigroup
Copy link
Collaborator

This PR adds stop sequence support when using the new GraphQL API.

Copy link
Contributor

@daniel-heppner-ibigroup daniel-heppner-ibigroup left a comment

Choose a reason for hiding this comment

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

Looks good, just a few thoughts about types as usual

packages/types/src/index.ts Show resolved Hide resolved
departureStoptime?: TripStopTime;
gtfsId?: string;
id: string;
tripHeadsign?: string;
Copy link
Contributor

Choose a reason for hiding this comment

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

this field and gtfsId are both required on the schema. Should we make them required here too? Just because they're required on the schema doesn't mean we have to request them in our query, so I can see it both ways.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The data passed on this component is sometimes generated by a client instead of fed right in from OTP. Do you think it's still worth making this change? I guess those projects would then throw TS errors, which is good.

@daniel-heppner-ibigroup daniel-heppner-ibigroup removed their assignment Jun 21, 2023
@miles-grant-ibigroup miles-grant-ibigroup merged commit 51f5f45 into opentripplanner:master Jun 26, 2023
@miles-grant-ibigroup miles-grant-ibigroup deleted the graphql-trip-stuff branch June 26, 2023 17:00
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