-
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
improvement(apiv2): use the OTP-UI conversion utility for legacy format #991
Conversation
Didn't realize the Percy tests broke on this. |
@@ -962,7 +922,7 @@ export function routingQuery(searchId = null, updateSearchInReducer) { | |||
const withCollapsedShortNames = | |||
response.data?.plan?.itineraries?.map((itin) => ({ | |||
...itin, | |||
legs: itin.legs?.map(processLeg) | |||
legs: itin.legs?.map(convertGraphQLResponseToLegacy) |
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 is great. Could you also update the dependencies to use core-utils 11.0.2 when it gets published?
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.
Sure, makes sense to roll that into this
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.
Seems to work!
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.
No regressions! Thanks for the changes
Description:
Uses the OTP-UI utility function to convert new OTP response into old for use in the app.
PR Checklist: