Skip to content

Conversation

@joshlarson
Copy link
Contributor

@joshlarson joshlarson commented Dec 23, 2025

@joshlarson joshlarson added the dev-blue Deploy to dev-blue label Dec 23, 2025
@joshlarson joshlarson added dev-green Deploy to dev-green and removed dev-blue Deploy to dev-blue labels Dec 23, 2025
@joshlarson joshlarson force-pushed the jdl/sf2.0/ud/cancelled-cr-trips branch from ad700d9 to 5907f6a Compare December 23, 2025 19:01
@joshlarson joshlarson force-pushed the jdl/sf2.0/ud/cancelled-cr-trips branch from 5907f6a to a4aea9a Compare December 23, 2025 19:51
@joshlarson joshlarson force-pushed the jdl/sf2.0/ud/refactor-predictions-schedules-fetching branch from 3703a0d to 247158b Compare December 24, 2025 16:27
@joshlarson joshlarson force-pushed the jdl/sf2.0/ud/cancelled-cr-trips branch from c95afab to f1dfa3f Compare December 24, 2025 16:27
@joshlarson joshlarson force-pushed the jdl/sf2.0/ud/refactor-predictions-schedules-fetching branch from 247158b to 945f281 Compare December 31, 2025 16:04
@joshlarson joshlarson force-pushed the jdl/sf2.0/ud/cancelled-cr-trips branch from f1dfa3f to 7477b73 Compare December 31, 2025 16:05
Base automatically changed from jdl/sf2.0/ud/refactor-predictions-schedules-fetching to main December 31, 2025 21:11
@joshlarson joshlarson force-pushed the jdl/sf2.0/ud/cancelled-cr-trips branch from 7477b73 to 7063ac0 Compare January 2, 2026 19:00
@joshlarson joshlarson marked this pull request as ready for review January 2, 2026 19:00
@joshlarson joshlarson requested a review from a team as a code owner January 2, 2026 19:00
@joshlarson joshlarson enabled auto-merge (squash) January 2, 2026 19:00
Copy link
Collaborator

@thecristen thecristen left a comment

Choose a reason for hiding this comment

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

I'm curious if we want to give schedule_relationship == :skipped the same treatment? But we can add that later.


defp cancelled?(%PredictedSchedule{schedule: schedule, prediction: prediction})
when prediction != nil and schedule != nil do
schedule_time = prediction_time(schedule)
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: trying to find a prediction time from a schedule seems kinda funny

defp prediction_time(%{departure_time: time}), do: time

defp prediction_time(%PredictedSchedule{
prediction: %Prediction{arrival_time: nil, departure_time: nil},
Copy link
Collaborator

Choose a reason for hiding this comment

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

I commented on this offline but I was curious why not use prediction schedule_relationship here. However I don't consider this logic incorrect.

@joshlarson joshlarson merged commit b80131b into main Jan 2, 2026
26 of 27 checks passed
@joshlarson joshlarson deleted the jdl/sf2.0/ud/cancelled-cr-trips branch January 2, 2026 20:27
@github-actions github-actions bot removed the dev-green Deploy to dev-green label Jan 2, 2026
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