WP-10: Pack Opening Hook — evolution_card_state Initialization #75
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#75
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
When cards are acquired (pack opening or trade), check if an
evolution_card_staterecord exists for the(player_id, team_id)pair. If not, create one with the correct track assignment. Lightweightget_or_createthat must NOT block or slow down pack opening.Repo:
databasePhase: 1b (API & Formula Engine)
Dependencies: WP-01, WP-03
Complexity: S
Card Type Determination
player.pos_1contains "SP" → 'sp' trackplayer.pos_1contains "RP" or "CP" → 'rp' trackFiles
database/app/services/evolution_init.pydatabase/app/routers_v2/cards.py— add hook after card POSTTests (write first in
database/tests/test_evolution_init.py)Acceptance Criteria
Plan reference:
docs/prd-evolution/PHASE1_PROJECT_PLAN.mdWP-10