Repository navigation
[feat] #240 - 투두 삭제 API의 date 파라미터를 다시 필수로 변경 - #245
Conversation
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
날짜 검증 및 삭제 분기 src/main/java/com/Timo/Timo/domain/todo/service/TodoService.java |
dateValue가 없거나 공백이면 날짜 파싱에서 INVALID_REQUEST 예외가 발생합니다. 반복 투두의 날짜 이전 삭제 분기에서 날짜 null 검사를 제거했습니다. |
Priority:
Estimated code review effort: 2 (Simple) | ~8 minutes
Change: Bug fix
Suggested reviewers: jy000n, laura-jung
Merge Risk: 
Minimal · up to 0571f
-
The API now enforces the required date parameter; merge risk is limited to coordinating the documented web-client deployment sequence.
Pre-merge checks: 
3 · 
1 · 
1
-
Failed checks: 1 warning · 1 inconclusive Passed checks: 3 passedFull details: Docstring Coverage
-
Explanation
Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 1 functions across 1 files.
Resolution
Write docstrings for the functions missing them to satisfy the coverage threshold.
Full details: Linked Issues check
-
Explanation
이슈
#240의서비스 요구사항은 확인됩니다.TodoService.deleteTodo는dateValue가null또는 공백이면 유효하지 않은 요청으로 처리하고, 날짜가 없는 전체 삭제 분기는 제거된 것으로 요약되어 있습니다. 그러나TodoControllerDocs요구사항은 검토 제외 파일src/main/java/com/Timo/Timo/domain/todo/docs/TodoControllerDocs.java에 있습니다. 현재 증거만으로 400 설명과 누락 날짜 문구 제거를 확인할 수 없습니다. 배포 순서는 비코딩 작업이므로 코딩 적합성 판단에 포함하지 않습니다.Resolution
src/main/java/com/Timo/Timo/domain/todo/docs/TodoControllerDocs.java의 변경 내용을 검토 가능한 diff 또는 독립적인 검토 증거로 확인해야 합니다.
-
Finishing Touches: 💡 1
-
📝 Generate docstrings: 💡
-
- Commit to this branch
- Create a new PR
🧪 Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Comment @coderabbitai help to get the list of available commands.
관련 이슈 🛠
작업 내용 요약 ✏️
#237에서 기존 웹 호환을 위해 임시로 선택값으로 받던 투두 삭제 API(
DELETE /api/v1/todos/{todoId})의date를 다시 필수로 되돌렸습니다.주요 변경 사항 🛠️
TodoService.deleteTodo:date가 없을 때 투두 전체를 삭제하던 분기를 제거했습니다.date가 없거나 비어 있으면parseDate에서TODO_400을 반환합니다.TodoControllerDocs: 삭제 API 설명에서date미전달 시 전체 삭제된다는 문구를 제거하고, 400 응답 설명에date누락을 다시 포함했습니다.트러블 슈팅 ⚽️
date없이 삭제를 요청하는 기존 웹 요청이TODO_400으로 실패합니다. 웹이 변경된 명세를 반영해 배포할 때까지 삭제가 실패할 수 있습니다.테스트 결과 📄
./gradlew build성공 (현재 테스트 소스는 없습니다)git diff --check통과스크린샷 📷
리뷰 요구사항 📢
Summary by CodeRabbit