Skip to content

fix(#125/#126/#127): DatabaseHealthCheck / _BoundQueryExecutor / CORS ヘッダー修正#138

Merged
hideyukiMORI merged 1 commit into
mainfrom
fix/125-127-medium-fixes
May 19, 2026
Merged

fix(#125/#126/#127): DatabaseHealthCheck / _BoundQueryExecutor / CORS ヘッダー修正#138
hideyukiMORI merged 1 commit into
mainfrom
fix/125-127-medium-fixes

Conversation

@hideyukiMORI
Copy link
Copy Markdown
Owner

Summary

#125 — DatabaseHealthCheck: bare except + 未文書 'degraded' ステータス

  • except Exception:except Exception as exc: に変更し logger.warning でエラーを記録
  • status="degraded"status="error" に統一(ドキュメントの ok | error 契約を守る)

#126_BoundQueryExecutor: OperationalError 未処理

  • fetch_all, fetch_one, write の全メソッドに except OperationalError → DatabaseConnectionException を追加
  • SqlAlchemyQueryExecutor と対称な実装に揃える

#127cors_allow_headers のワイルドカードデフォルト

  • ["*"]["Content-Type", "Authorization", "X-Api-Key", "X-Request-Id"] に変更
  • CLAUDE.md の allow_origins ワイルドカード禁止ポリシーと整合させる

Test plan

  • 全 102 テスト継続パス

Closes #125
Closes #126
Closes #127

🤖 Generated with Claude Code

- #125: DatabaseHealthCheck の bare except を exc 付きに変更し、
  未文書の 'degraded' ステータスを 'error' に統一してログを記録する
- #126: _BoundQueryExecutor の全メソッドに OperationalError →
  DatabaseConnectionException の変換を追加する
- #127: cors_allow_headers のデフォルトをワイルドカードから
  明示的なヘッダーリストに変更する

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@hideyukiMORI hideyukiMORI merged commit f115534 into main May 19, 2026
1 check failed
@hideyukiMORI hideyukiMORI deleted the fix/125-127-medium-fixes branch May 21, 2026 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant