Skip to content

fix: Duplicate source IDs and malformed source filenames [SOURCES] - #1578

Open
peatoe wants to merge 1 commit into
MobilityData:mainfrom
peatoe:fix/duplicate-ids-and-malformed-filenames
Open

fix: Duplicate source IDs and malformed source filenames [SOURCES]#1578
peatoe wants to merge 1 commit into
MobilityData:mainfrom
peatoe:fix/duplicate-ids-and-malformed-filenames

Conversation

@peatoe

@peatoe peatoe commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Follow-up to the duplicate and stray ID issues found while preparing #1572, as discussed with @emmambd in #1572 (comment). Five files, renames plus three ID changes, no test changes (pausing on the test itself per that comment).

Renamed, IDs unchanged

  • us-virginia-roanoke-cortran-flex-gtfs-2435 to ...2435.json (extension was missing)
  • fr-normandie-hobus-gtfs-2685.zip to ...2685.json (JSON content, wrong extension)

Renumbered: duplicate IDs inside the realtime catalog

The catalog is keyed on mdb_source_id, so one file silently hides the other. Before this PR, 979 realtime files produced 977 visible sources.

  • South Portland vehicle positions, shared 2647 with the tu feed, now mdb-3408
  • Bilbobus vehicle positions, shared 2698 with SMART service alerts, now mdb-3409
  • Cotral BusOne trip updates, shared 3388 with pt-lisboa-tml from New feeds from Turkey, US, Portugal Italy [SOURCES] #1576 today, now mdb-3410

Visible feeds keep their current IDs. Nothing references the renumbered entries (no redirects, no static_reference), and they were hidden until now, so nothing downstream can be using them.

Left alone: mdb-3204

Shared by the Cathleen Stone ferry (schedule) and El Paso vp (realtime). Both are published and visible in their own catalogs, so renumbering would change a public ID. Your call, happy to include it here or in a follow-up.

Rename several GTFS source files and update internal IDs for consistency. Updated realtime files and their mdb_source_id values: es-basque-country-bilbobus (2698 → 3409), it-cotral-busone (3388 → 3410), us-maine-south-portland (2647 → 3408). Also renamed two schedule files to use .json extension: fr-normandie-hobus-gtfs-2685.zip → fr-normandie-hobus-gtfs-2685.json and us-virginia-roanoke-cortran-flex-gtfs-2435 → us-virginia-roanoke-cortran-flex-gtfs-2435.json. These changes normalize filenames/extensions and align source metadata with updated mdb entries.
@peatoe
peatoe marked this pull request as ready for review July 30, 2026 19:57
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.

1 participant