Raise exception on spreadsheet errors instead of silently skipping #4
No reviewers
Labels
No Label
ai-changes-requested
ai-pr-opened
ai-reviewed
ai-reviewing
ai-working
in-next-release
status/in-progress
status/pr-open
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: cal/major-domo-v2#4
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "fix/validate-spreadsheet-decision-data"
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?
Problem:The
_is_spreadsheet_error()check was logging a warning and silently skipping rows with formula errors (#REF!, #N/A, etc.). This could lead to incomplete game data being submitted without the user knowing - for example, missing pitcher decisions or partial play-by-play data.Solution:RaiseSheetsExceptionimmediately when spreadsheet errors are detected, providing:- Exact row number and field name- Actual error value found in the cell (#REF!,#N/A, etc.)- Common error type explanations- Clear action required to fixImpact:- ✅ Users get immediate feedback about spreadsheet errors- ✅ No partial/incomplete data submitted to API- ✅ Clear instructions on what needs to be fixed- ✅ Better data integrity and user experience- ✅ Prevents confusion from silent failuresExample Error Message:❌ Spreadsheet Error Detected**Location:** Row 7, Column 'pitcher_id'**Value Found:** `#REF!`This cell contains a formula error that must be fixed before submission.**Common Error Types:**• `#REF!` - Invalid cell reference (deleted row/column)• `#N/A` - Lookup formula couldn't find a match• `#VALUE!` - Wrong data type in formula• `#DIV/0!` - Division by zero• `#NAME?` - Unrecognized formula name**Action Required:** Fix cell pitcher_id in row 7 and resubmit.**Testing:**To test, create a scorecard with a formula error (e.g., delete a referenced column to create #REF!) and attempt submission. The command should fail with a clear, actionable error message instead of silently skipping the row.62686cd965to085e76134b