mirror of
https://github.com/nomadkaraoke/karaoke-gen.git
synced 2026-12-02 09:58:08 +09:00
## Summary - Changed `enable_youtube_upload` from `bool=False` to `Optional[bool]=None` in request models - Allows explicit `false` to override server default when `DEFAULT_ENABLE_YOUTUBE_UPLOAD=true` - E2E tests now intercept requests to disable YouTube upload for test jobs ## Changes - **Request models**: Changed to `Optional[bool] = None` to support three states (None/True/False) - **API routes**: All job creation endpoints now compute effective value using `if is not None else` pattern - **E2E test**: Added Playwright request interception to set `enable_youtube_upload=false` for test jobs - **Tests**: Updated to expect `None` instead of `False` for request model defaults - **Docs**: Added lesson learned about Python `or` operator gotcha with boolean defaults ## Testing - [x] Backend tests pass (`make test`) - [x] No TypeScript errors in frontend changes ## Review - [x] CodeRabbit CLI review completed locally - [x] No issues found @coderabbitai ignore --- 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>