Skip to content

feat: #251 당일 히스토리 조회 API에 내 히스토리 여부를 확인할 수 있는 isMine 응답 필드 추가#252

Merged
kelly6bf merged 1 commit intodevfrom
feature/#251-is_mine_response_value_add
Feb 2, 2026
Merged

feat: #251 당일 히스토리 조회 API에 내 히스토리 여부를 확인할 수 있는 isMine 응답 필드 추가#252
kelly6bf merged 1 commit intodevfrom
feature/#251-is_mine_response_value_add

Conversation

@kelly6bf
Copy link

@kelly6bf kelly6bf commented Feb 2, 2026

😉 연관 이슈

Resolves #251

🧑‍💻 수행 작업

  • 당일 히스토리 조회 API에 내 히스토리 여부를 확인할 수 있는 isMine 응답 필드 추가

📢 참고 사항

X

Summary by CodeRabbit

릴리스 노트

  • 신기능
    • 할일 목록 응답에 현재 사용자가 작성한 할일을 표시하는 지표가 추가되었습니다. 이를 통해 그룹 내 할일 이력을 조회할 때 어느 할일이 본인 것인지 쉽게 구분할 수 있습니다.

@coderabbitai
Copy link

coderabbitai bot commented Feb 2, 2026

Caution

Review failed

The pull request is closed.

📝 Walkthrough

Walkthrough

당일 데일리 투두 히스토리 조회 API에 isMine 필드를 추가하여 히스토리가 현재 사용자에 의해 작성되었는지 여부를 나타냅니다. 엔티티부터 DTO, 서비스, API 응답까지 전체 계층에 걸쳐 필드를 추가하고 테스트를 업데이트했습니다.

Changes

Cohort / File(s) Summary
DTO 레이어
src/main/java/site/dogether/dailytodohistory/service/dto/TodoHistoryDto.java
TodoHistoryDto 레코드에 boolean isMine 필드를 추가하여 생성자 시그니처를 확장했습니다.
엔티티 및 서비스 레이어
src/main/java/site/dogether/dailytodohistory/entity/DailyTodoHistory.java, src/main/java/site/dogether/dailytodohistory/service/DailyTodoHistoryService.java
DailyTodoHistory에 isMine(Member target) 메서드를 추가하고, DailyTodoHistoryService의 변환 로직에서 새 필드를 매핑하는 코드를 추가했습니다.
API 응답 레이어
src/main/java/site/dogether/dailytodo/controller/v2/dto/response/GetChallengeGroupMemberTodayTodoHistoryApiResponseV2.java
중첩된 TodoData 레코드에 boolean isMine 필드를 추가하고 생성자 시그니처와 매퍼를 업데이트했습니다.
테스트 코드
src/test/java/site/dogether/docs/dailytodo/v1/DailyTodoControllerV1DocsTest.java, src/test/java/site/dogether/docs/dailytodo/v2/DailyTodoControllerV2DocsTest.java
TodoHistoryDto 생성자 호출에 새 boolean 파라미터를 추가하고, 임포트 문을 정리하며, REST Docs 응답 스키마에 isMine 필드를 문서화했습니다.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feature/#251-is_mine_response_value_add

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@kelly6bf kelly6bf merged commit f91c230 into dev Feb 2, 2026
7 of 8 checks passed
@kelly6bf kelly6bf deleted the feature/#251-is_mine_response_value_add branch February 2, 2026 12:26
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