claude-memory/graph/solutions/rosterlink-refactor-for-bench-players-db7b8c.md

19 lines
874 B
Markdown

---
id: db7b8cba-1884-4def-ae36-033fdf1b70db
type: solution
title: "RosterLink refactor for bench players"
tags: [strat-gameplay-webapp, python, vue, refactor, rosterlink, bench-players]
importance: 0.7
confidence: 0.8
created: "2026-01-18T04:15:29.580857+00:00"
updated: "2026-03-03T06:37:31.706834+00:00"
relations:
- target: 4cb03629-1d2d-467f-90af-01dc405abcd1
type: RELATED_TO
direction: incoming
strength: 0.69
edge_id: 70510679-06db-425a-b967-a48ef9925337
---
Refactored bench player storage from Lineup table (position=BN) to RosterLink table with player_positions JSONB column. Added player_data JSONB to cache name/image/headshot at lineup submission, eliminating runtime API calls. Added is_pitcher/is_batter computed properties supporting two-way players. Key fix: CP (Closer Pitcher) must be in PITCHER_POSITIONS set alongside P, SP, RP, CL.