Retire legacy v1 venue_id from venue metadata after timetable-v2 switchover
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
Research direction
Start by searching the codebase for metadata.venue_id and any v1 venue-code resolution, especially in timetable v2 and venue_bookings, before changing data. The seed path is nyxchange-timetable-v2/scripts/seed_venues.py reading fixtures/venues.csv; removal is a bulk read-merge-PATCH through the venues API for dev and prod. Done means no consumer reads the key, the seed script stops writing it, and the field is absent from all seeded venue documents.
Written by the indexing model from the issue text.
Description
Context
The venue seed from nyxchange-timetable-v2/fixtures/venues.csv (seeded to prod 2026-11-23) stores each venue document with metadata.venue_id — the timetable v1 venue code (e.g. 3-27, Basketball1) — alongside the regenerated campus id (venue-xxxxxxxx). The legacy code is the join key while timetable v2 (and any v1-era data) still references venues by v1 code; campus venue ids are the stable long-term key.
This issue tracks the one-way retirement of the legacy key once consumers stop using it. Filed as an explicit condition of the seed approval.
Why retire
Once timetable v2 and the booking domain resolve venues exclusively by campus venue id, the legacy key is dead weight: it invites code-based joins, can drift from the truth, and keeps v1 naming alive in the data model.
Scope
- Timetable v2 resolves venues by campus venue id (no
metadata.venue_idlookups) - Booking domain (
venue_bookings) references campus venue ids only - Drop
metadata.venue_idfrom all seeded venue documents (dev + prod) — bulk read-merge-PATCH via the venues API - Update or remove
nyxchange-timetable-v2/scripts/seed_venues.pyso the key is no longer written - If v1 booking data is ever migrated, map legacy codes → campus ids at import time (do not persist the code)
Notes
- Codes are not recoverable from names (e.g. code
Basketball1→ name "Sheltered Netball Court"), so this is one-way: verify no consumer reads the key before deleting it. - The CSV's invisible alias/label venues (group labels like "Bio Labs", "Home", "LT") exist for legacy-code resolution; consider deleting them in the same sweep once nothing resolves by code.
- Dominant language
- Python
- Stars
- 0
- Forks
- 2
- Avg merge
- 39m
- Merged PRs (30d)
- 235
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from nyjc-computing/campus
-
enhancement for-collaborators for-contributors
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
nyjc-computing/campus#451 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 42/100
nyjc-computing/campus#1320 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 25/100
nyjc-computing/campus#1309 ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 18/100
nyjc-computing/campus#1300 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 5/5 Over a week Newbie friendliness 5/100
nyjc-computing/campus#1295 · 4 comments ·
Maintainers usually reply within 1 day
All issues in nyjc-computing/campus
Similar issues
-
triage
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
kornia/kornia-rs#1416 · 1 comment ·
Maintainers usually reply within 2 days
-
ui
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
PolicyEngine/ai-inequality#64 ·
Maintainers usually reply within 1 day
-
LinearGaussianStateSpace.dist splits states and observations wrongly when the transition varies over timePossibly taken @PabloRoque claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
pymc-devs/pymc-extras#839 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day