feat(ingestion): add first real-data importer flow

This commit is contained in:
bisco
2026-04-11 00:24:42 +02:00
parent 5c82187b7c
commit 154450f516
8 changed files with 610 additions and 0 deletions

View File

@ -15,6 +15,7 @@ The current application baseline provides:
- user-scoped shortlist favorites
- user-scoped plain-text scouting notes on player detail pages
- user-scoped saved searches (save, rerun, delete)
- first real-data ingestion command baseline (`import_hoopdata_demo_competition`) with idempotent source-identity mapping
Accepted technical and product-shaping decisions live in:
- `docs/ARCHITECTURE.md`
@ -59,6 +60,12 @@ Accepted technical and product-shaping decisions live in:
9. Open player detail pages to review context rows and create user-scoped notes.
10. Use `http://127.0.0.1:8000/favorites/` to review your user-scoped shortlist.
First real-data importer (ADR-0009 baseline):
- default sample snapshot import:
`docker compose --env-file .env -f infra/docker-compose.yml exec -T app python manage.py import_hoopdata_demo_competition`
- explicit input path import:
`docker compose --env-file .env -f infra/docker-compose.yml exec -T app python manage.py import_hoopdata_demo_competition --input /app/scouting/sample_data/imports/hoopdata_demo_serie_a2_2025_2026.json`
Legacy shared favorites and notes from the pre-auth MVP are cleared by the early-stage ownership migration so the app can move cleanly to user-scoped data.
## Workflow