fix: remove stub live_update_pitching endpoint (#11) #57
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#57
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "ai/paper-dynasty-database#11"
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?
Summary
POST /api/v2/scouting/live-update/pitchingendpoint fromapp/routers_v2/scouting.pyfiles.dict()with no processingBattingFilesas its input type, confirming it was never properly designedFiles Changed
app/routers_v2/scouting.py— deletedlive_update_pitchingfunction (lines 86–95)Notes
live_update_battingendpoint has a similar incomplete state (loops withpassand comments for unimplemented logic). Left untouched per issue scope — noted here for awareness.Tests
No test suite present in this repo.
f4d464d787to8e0d1e63a38e0d1e63a3toc3732ef33eAI Code Review
Files Reviewed
app/routers_v2/scouting.py(modified — 10 lines deleted)Findings
Correctness
BattingFilesas input for a pitching endpoint (wrong type), performed zero processing, and returnedfiles.dict()unchanged. No callers exist anywhere in the codebase. Removal is correct and unambiguous.Security
logging.warning("Bad Token: [REDACTED]")pattern (not exposing the token), so no security regression risk.Style & Conventions
Suggestions
BattingFilesclass is now dead code. TheBattingFilespydantic model (lines 12–18) was only used bylive_update_pitching. After this PR, nothing references it. It should be removed alongside the endpoint. Not a blocker, but it will leave an orphaned model in the file.PR Description Notes
live_update_battingendpoint "withpassand comments for unimplemented logic" that was left untouched — this endpoint does not exist anywhere in the codebase. The description is misleading.Verdict: APPROVED
The removal is correct — the endpoint was a mislabeled stub with a wrong input type, no processing logic, and no callers. The
BattingFilesorphan class is worth a follow-up cleanup but doesn't block this merge.Automated review by Claude PR Reviewer