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: filter cancelled & skipped departures #2174

Merged
merged 1 commit into from
Aug 29, 2024

Commits on Aug 29, 2024

  1. fix: filter cancelled & skipped departures

    Parses the `schedule_relationship` field for `Predictions` and uses that
    data to remove departures with a SKIPPED or CANCELLED schedule
    relationship when merging `Prediction`s and `Schedule`s.
    
    Some Predictions now have a SKIPPED schedule relationship **AND**
    arrival/departure times (indicating what time the vehicle is predicted
    to pass through the stop). These Predictions need to be filtered out
    when we fetch departures. Previously these didn't have times so our
    other filtering logic would remove them.
    
    For completeness we are also filtering out Predictions with a CANCELLED
    schedule relationship.
    sloanelybutsurely committed Aug 29, 2024
    Configuration menu
    Copy the full SHA
    7b5abd1 View commit details
    Browse the repository at this point in the history