Resort data model with stable UUID resort IDs (Issue #55)#84
Merged
jonathanstelman merged 2 commits intomainfrom Mar 15, 2026
Merged
Resort data model with stable UUID resort IDs (Issue #55)#84jonathanstelman merged 2 commits intomainfrom
jonathanstelman merged 2 commits intomainfrom
Conversation
- Add resort_id (UUID v4) as first column in data/resorts.csv; drop legacy index column - Add data/resort_id_map.csv (source → UUID mapping) for stable IDs across pipeline runs - pipeline/generate_resort_ids.py: one-time migration script that populated the map - pipeline/prep_resort_data.py: assign_resort_ids() looks up existing UUIDs, generates new ones for new resorts - app.py: remove index_col='index' (no longer needed) - backend/models.py: Pydantic Resort model covering all resorts.csv columns - backend/data.py: load_resorts() reads resorts.csv into list[Resort] - backend/tests/test_resort_model.py: verifies all rows load cleanly and IDs are unique Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Vite's dependency cache directory was showing as untracked. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
data/resorts.csv: addsresort_id(UUID v4) as first column, drops legacyindexcolumndata/resort_id_map.csv: new mapping file (resort_id,source,source_id) for stable IDs across pipeline runspipeline/generate_resort_ids.py: one-time migration script used to populate the map and update the CSVpipeline/prep_resort_data.py:assign_resort_ids()looks up existing UUIDs from the map, generates new ones only for new resortsapp.py: removesindex_col='index'(column no longer exists)backend/models.py: PydanticResortmodel covering all columns inresorts.csvbackend/data.py:load_resorts()readsresorts.csvintolist[Resort]backend/tests/test_resort_model.py: verifies all 271 rows load cleanly and UUIDs are uniqueNotes
indexcolumn was pandas row numbers with no semantic meaning —resort_idis now the true primary key in both the CSV and (eventually) PostgresTest plan
resort_idvalues are unique across all rowsgenerate_resort_ids.pypreserves existing UUIDsCloses #55
🤖 Generated with Claude Code