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

fix(core-utils): Set agencyId when converting graphql resp to legacy. #652

Conversation

binh-dam-ibigroup
Copy link
Collaborator

This PR populates the agencyId of an itinerary from graphql responses, for use in determining agency logos in itinerary-body.

Copy link
Collaborator

@miles-grant-ibigroup miles-grant-ibigroup left a comment

Choose a reason for hiding this comment

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

Working well for me, but @daniel-heppner-ibigroup should be second reviewer as this is his code

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.

This is good, but I actually just put this function in to make the stories work. It's not actually used by OTP-RR, but this is a good reminder to add that. I'll open a PR to go along with this one.

@binh-dam-ibigroup
Copy link
Collaborator Author

Oh I totally missed that, but good point, could that big processLeg function in OTP-RR reuse this code?

@daniel-heppner-ibigroup
Copy link
Contributor

opentripplanner/otp-react-redux#991 makes use of this!

@binh-dam-ibigroup binh-dam-ibigroup merged commit 0a3762a into opentripplanner:master Sep 1, 2023
@binh-dam-ibigroup binh-dam-ibigroup deleted the fix-coreutils-otp2leg-agencyid branch September 1, 2023 12:23
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