kuju63 / kuju63/code-review-agents
[Sub-Issue] Review Status Update API
- Dominant language
- HTML
- Stars
- 0
- Forks
- 0
- Avg merge
- 1d 7h
- Merged PRs (30d)
- 96
Description
[サブイシュー] レビューステータス更新API
#### 目的
レビュー対象の状態(Close, Retry, 途中経過など)を更新するAPIを提供する。
#### 実装項目
1. **ステータス更新API** `/reviews/{{id}}/status`
- PATCH で `{status, comment}` を受け取り、レビューエントリのステータスを更新。
- `status` は `not_started|analyzing|waiting|error|closed` のいずれか。
- `comment` は任意で、ステータス変更時の説明を保持。
- レスポンスは更新後のオブジェクト。
2. **リトライAPI** `/reviews/{{id}}/retry`
- POST で解析を再試行。`status` を `analyzing` にリセット。
#### テスト計画
- **ユニット**: Vitest でステータスバリデーション関数を検証。
- **インテグレーション**: Playwright で PATCH/POST への呼び出しと DB 変更を確認。
- **エンドツーエンド**: Playwright でフロントからステータス変更ボタンを押し、API呼び出しが成功するか検証。
- **コンポーネント**: Storybook でステータス表示コンポーネントのスナップショットを作成。
#### 参照
- 親 Issue #243
---
**備考**
- レビュー実行は別サービス(オーケストレーター)と連携し、ステータス更新を行う。
Contributor guide
Research direction
Start with parent issue #243 and inspect the existing review entry and orchestrator integration. Implement and verify PATCH /reviews/{id}/status and POST /reviews/{id}/retry, then run the planned Vitest validation and Playwright API, database, and end-to-end checks. Done means status changes, optional comments, retries, and the Storybook status snapshot are covered.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- playwright, storybook
- Domain
- api, backend, frontend, testing
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100