feat/stratplay-sbaplayer #17

Merged
cal merged 2 commits from feat/stratplay-sbaplayer into main 2026-02-17 23:56:42 +00:00

2 Commits

Author SHA1 Message Date
Cal Corum
86f8495284 feat: Add group_by=sbaplayer to batting, pitching, and fielding endpoints
All checks were successful
Build Docker Image / build (pull_request) Successful in 2m32s
Enables career-total aggregation by real-world player identity (SbaPlayer)
across all seasons. JOINs StratPlay → Player to access Player.sbaplayer FK,
groups by that FK, and excludes players with null sbaplayer. Also refactors
stratplay router from single file into package and adds integration tests.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 17:42:14 -06:00
Cal Corum
90893aa774 feat: Add sbaplayer_id filter to /plays batting, pitching, and fielding endpoints
Enables cross-season stat queries by MLB player identity (SbaPlayer) without
requiring callers to look up every season-specific Player ID first. Filters
via Player subquery since StratPlay has no direct FK to SbaPlayer.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 17:42:14 -06:00