WP-13: Post-Game Callback Integration #78
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
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: cal/paper-dynasty-database#78
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
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?
Description
After a game completes, trigger: (1) update
player_season_statswith game deltas, (2) evaluate evolution state for all participating cards. Hooks intocomplete_game()in the bot at ~line 4348.Repo:
discord-app(hook) +database(API endpoints)Phase: 1c (Bot Integration)
Dependencies: WP-05, WP-08
Complexity: L
New API Endpoints
Bot Hook (in complete_game)
Evolution failure must NOT prevent game completion.
Tests
Plan reference:
docs/prd-evolution/PHASE1_PROJECT_PLAN.mdWP-13Schema change notice:
PlayerSeasonStatshas been split intoBattingSeasonStatsandPitchingSeasonStats.Relevant commits on
next-release:bd8e457— refactor: split PlayerSeasonStats into BattingSeasonStats and PitchingSeasonStats6580c1b— refactor: deduplicate pitcher formula and test constantsImpact on this WP:
app/routers_v2/season_stats.pyhas already been updated — batting upserts go tobatting_season_stats, pitching upserts go topitching_season_statsw/wins,hr_p/hr_allowed, etc.)main.py— that's still part of this WP's scope