Skip to content

[feat] #240 - 투두 삭제 API의 date 파라미터를 다시 필수로 변경 - #245

Merged
aneykrap merged 1 commit into
developfrom
feat/#240-todo-delete-date-required
Oct 29, 2026
Merged

aneykrap merged 1 commit into
developfrom
feat/#240-todo-delete-date-required

Conversation

@aneykrap

@aneykrap aneykrap commented Oct 29, 2026 •

Copy link
Copy Markdown
Collaborator

관련 이슈 🛠

작업 내용 요약 ✏️

#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 통과

스크린샷 📷

  • 없음

리뷰 요구사항 📢

  • 이슈에 적은 배포 순서대로 웹에서 배포를 요청하면 이 PR을 develop에 머지하고 서버를 먼저 배포하려고 합니다. 그전에는 머지하지 말아 주세요!

Summary by CodeRabbit

  • 버그 수정
    • 날짜 값이 없거나 공백인 할 일 삭제 요청은 유효하지 않은 요청으로 처리됩니다.
    • 반복 할 일을 특정 날짜 이전부터 삭제할 때는 날짜를 파싱한 값으로 판단합니다.
    • 이에 따라 날짜가 누락된 요청이 전체 할 일 삭제로 이어지던 동작이 변경되었습니다.

@coderabbitai

coderabbitai Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
Commits

Reviewing files that changed from the base of the PR and between 4ce35ea and 0571f29.

Files ignored due to path filters: 1
  • src/main/java/com/Timo/Timo/domain/todo/docs/TodoControllerDocs.java is excluded by !**/docs/**
Files selected for processing: 1
  • src/main/java/com/Timo/Timo/domain/todo/service/TodoService.java

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

Walkthrough

TodoService.deleteTodo는 dateValue를 항상 파싱합니다. 날짜가 없거나 공백이면 INVALID_REQUEST 예외가 발생합니다. 반복 투두의 삭제 분기는 파싱된 날짜를 기준으로 평가합니다.

Changes

투두 삭제 날짜 처리

Layer / File(s) Summary
날짜 검증 및 삭제 분기
src/main/java/com/Timo/Timo/domain/todo/service/TodoService.java
dateValue가 없거나 공백이면 날짜 파싱에서 INVALID_REQUEST 예외가 발생합니다. 반복 투두의 날짜 이전 삭제 분기에서 날짜 null 검사를 제거했습니다.

Priority: Normal

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: Passed 3 · Failed 1 · Inconclusive 1

Failed Failed checks: 1 warning · 1 inconclusive

Check name Status Explanation Resolution
Docstring Coverage Warning 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. Documentat… Write docstrings for the functions missing them to satisfy the coverage threshold.
Linked Issues check Inconclusive 이슈 #240의 서비스 요구사항은 확인됩니다. TodoService.deleteTodo는 dateValue가 null 또는 공백이면 유효하지 않은 요청으로 처리하고, 날짜가 없는 전체 삭제 분기는 제거된 것으로 요약되어 있습니다. 그러나 TodoControllerDocs 요구사항은 검토 제외 파일 `src/main/java/com/Timo/T… src/main/java/com/Timo/Timo/domain/todo/docs/TodoControllerDocs.java의 변경 내용을 검토 가능한 diff 또는 독립적인 검토 증거로 확인해야 합니다.
Passed Passed checks: 3 passed
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed PR 제목은 DELETE /api/v1/todos/{todoId}의 date 파라미터를 다시 필수로 변경하는 주요 변경 사항을 정확하고 구체적으로 설명합니다.
Out of Scope Changes check Passed 검토 가능한 변경은 TodoService.deleteTodo의 date 필수 검증 복원과 관련됩니다. 이는 이슈 #240의 API 동작 변경과 직접 연결됩니다. 테스트 부재와 빌드 결과 보고는 해당 변경의 검증 범위에 해당하며, 검토 가능한 증거에서 무관한 변경은 확인되지 않습니다.
Full 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.

@aneykrap
aneykrap requested review from Jy000n and laura-jung October 29, 2026 08:08
@aneykrap
aneykrap merged commit 91c6b1e into develop Oct 29, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[feat] 투두 삭제 API의 date 파라미터를 다시 필수로 변경

1 participant