Merge next-release into main #100
No reviewers
Labels
No Label
ai-changes-requested
ai-failed
ai-merged
ai-pr-opened
ai-reviewed
ai-reviewing
ai-reviewing
ai-working
bug
enhancement
evolution
performance
phase-0
phase-1a
phase-1b
phase-1c
phase-1d
security
tech-debt
todo
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: cal/paper-dynasty-database#100
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "next-release"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Release PR merging 27 commits from next-release into main.
Summary
Conflict Resolution
Conflicts in
app/main.pyandapp/routers_v2/players.py— main had the Phase 0 render pipeline optimization (asyncio.Lock, error-tolerant shutdown, --no-sandbox), next-release had an earlier version of the same browser persistence feature. Kept main's version and added the evolution router import.sotoso_batterandktoso_pitcherAI Code Review (post-merge)
Files Reviewed
app/db_engine.py(BattingSeasonStats, PitchingSeasonStats models)app/main.py(evolution router added)app/routers_v2/evolution.py(added)app/routers_v2/season_stats.py(added)app/routers_v2/cards.py(N+1 batch fix + reformatting)app/routers_v2/teams.py(min→max fix)app/routers_v2/scouting.py(stub removed)app/services/formula_engine.py,app/seed/evolution_tracks.py, tests (added)Dockerfile,requirements.txt,pyproject.toml,.gitea/workflows/build.ymlFindings
🔴 CRITICAL —
EvolutionTracknot defined indb_engine.pyapp/routers_v2/evolution.pylazy-importsEvolutionTrack:EvolutionTrackdoes not exist indb_engine.py. Every request toGET /api/v2/evolution/tracksorGET /api/v2/evolution/tracks/{id}will raiseImportErrorat runtime. The model needs to be added todb_engine.py(matching the pattern used forBattingSeasonStats/PitchingSeasonStatsin this PR) before the evolution endpoints can function.🔴 CRITICAL —
season_statsrouter never registered inapp/main.pyapp/routers_v2/season_stats.pydefinesPOST /api/v2/season-stats/update-game/{game_id}but is not imported or registered inapp/main.py. The endpoint is completely unreachable. Fix:🟡 MODERATE —
pg_connfixture missing fromtests/conftest.pytest_evolution_track_api.pyuses apg_connfixture that is not defined anywhere intests/. The fixture from PR #84's conftest was not carried forward. CI passes only becausePOSTGRES_HOSTis unset, skipping those tests. Running integration tests against a live DB would fail withfixture 'pg_conn' not found.🟡 MODERATE —
gamescolumn never updatedBattingSeasonStats.gamesandPitchingSeasonStats.gamesare defined but theupdate_gameSQL upserts never increment them. All players will showgames=0permanently.ℹ️ Info
cards.py,min→maxinteams.py, formula engine, seed data, season stats model and indexes all look good.[REDACTED]log pattern preserved in all new code — no security regressions.main.Verdict: Would have been REQUEST_CHANGES
Two blockers above should be fixed as follow-up issues before deploying to production.
Automated review by Claude PR Reviewer