candle-annotator/services/ml/app
Marko Djordjevic 688e75e6be Scope training run queries in FastAPI to filter by user ID (Task 14.3)
- Add user_id column to TrainingRun model in db.py
- Store user_id on TrainingRun insert in /training/start
- Filter GET /training/runs by user_id (returns empty list if no user context)
- Enforce user ownership on GET /training/runs/{run_id} (404 on mismatch)
- Enforce user ownership on DELETE /training/runs/{run_id} (404 on mismatch)
- Add migration 002 to add user_id column and index to training_runs table

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-20 18:38:18 +01:00
..
__init__.py feat(ml): add database schema, config parser, and DVC setup 2026-02-15 12:08:53 +01:00
annotation_ingestion.py fix(training): use selected chart and include TA-Lib span sources 2026-02-18 23:21:23 +01:00
config.py feat(ml): add database schema, config parser, and DVC setup 2026-02-15 12:08:53 +01:00
data_access.py fix(training): use selected chart and include TA-Lib span sources 2026-02-18 23:21:23 +01:00
db.py Scope training run queries in FastAPI to filter by user ID (Task 14.3) 2026-02-20 18:38:18 +01:00
main.py Scope training run queries in FastAPI to filter by user ID (Task 14.3) 2026-02-20 18:38:18 +01:00
patterns.py feat: add FastAPI pattern detection endpoints (Section 1) 2026-02-17 18:34:14 +01:00
preprocessing.py Fix inference feature mismatch with training metadata 2026-02-18 23:53:38 +01:00