-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FIX: Make canonical_stop_sequence use route_pattern_typicality=5 (#205)
Ops Analytics identified an error in the canonical_stop_sequence calculation we were using. This error is triggered by 3 static schedules released in Dec 2023: Fall 2023, 2023-12-07T22:35:17+00:00, version D Fall 2023, 2023-12-05T18:45:28+00:00, version D Fall 2023, 2023-12-04T21:09:26+00:00, version D When picking which representative_trip_id to use from route_patterns, records with route_pattern_typicality=5 should be used first for any route-pattern/direction combination and then route_pattern_typicality=1 should be used when the first option is not available. This change will work with static schedule going back to January 2019, but will fail for any older GTFS schedule versions. This change updates our daily canonical_stop_sequence calculation logic and also deploys a migration for existing canonical_stop_sequence values in the staging RDS. This change also shrinks our prod migrations into a single file, since no deploy has been pushed to the PROD RDS yet, a single migration file is sufficient.
- Loading branch information
Showing
9 changed files
with
337 additions
and
424 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
120 changes: 0 additions & 120 deletions
120
...mp_py/migrations/versions/performance_manager_prod/002_1b53fd278b10_fix_trip_id_length.py
This file was deleted.
Oops, something went wrong.
77 changes: 0 additions & 77 deletions
77
...y/migrations/versions/performance_manager_prod/003_ae6c6e4b2df5_extend_service_id_view.py
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.