Skip to content

feat(Schedules.Trip): parse the next trip - #3484

Merged
thecristen merged 4 commits into
mainfrom
cbj/api-transfer
Sep 9, 2026
Merged

thecristen merged 4 commits into
mainfrom
cbj/api-transfer

Conversation

@thecristen

@thecristen thecristen commented Sep 9, 2026

Copy link
Copy Markdown
Collaborator

Scope

Asana Ticket: part of Follow up on "🛜 🐞 Daily Schedules sometimes doesn't show school trips "

Implementation

Following this V3 API PR, we can now get information about in-seat transfers. In-seat transfers specifically use transfer_type=4.

More about transfers and example API response.

This PR lets us get transfers from a trip (via its from_trip_transfers relationship), and for in-seat transfers, get the transfer's related to_trip ID, and save this value in %Schedules.Trip{}'s new next_trip_id field.

Note

I did use Copilot for the third commit, which slightly refactors our parsing module. Our current code infinitely recurses when there are nested relations with repeated types (like a trip's related transfer's related trip) :(

@thecristen
thecristen requested a review from a team as a code owner September 9, 2026 17:16
@thecristen
thecristen requested a review from jlucytan September 9, 2026 17:16
@thecristen
thecristen enabled auto-merge (squash) September 9, 2026 17:23
@thecristen
thecristen merged commit a56400e into main Sep 9, 2026
20 checks passed
@thecristen
thecristen deleted the cbj/api-transfer branch September 9, 2026 19:27
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.

2 participants