Skip to content

[feat] 날짜별 집안일 조회 구현 - #8

Merged
leehwx merged 1 commit into
developfrom
feat/chore-by-date
Jul 10, 2026
Merged

[feat] 날짜별 집안일 조회 구현#8
leehwx merged 1 commit into
developfrom
feat/chore-by-date

Conversation

@leehwx

@leehwx leehwx commented Jul 10, 2026

Copy link
Copy Markdown
Collaborator

Summary by CodeRabbit

  • New Features
    • Added daily chore 조회 with the selected date, including total and completed counts.
    • Added calendar 조회 for an inclusive date range.
    • Calendar results now include every date in the range, including dates without chores.
    • Daily 조회 defaults to the current date when no date is provided.

@leehwx leehwx self-assigned this Jul 10, 2026
@leehwx
leehwx merged commit 54c3fe7 into develop Jul 10, 2026
1 check passed
@coderabbitai

coderabbitai Bot commented Jul 10, 2026

Copy link
Copy Markdown

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: b0369e7e-6cde-41ab-9d0a-8bb7b5e45fb4

📥 Commits

Reviewing files that changed from the base of the PR and between 6a45e8e and c5eba9e.

📒 Files selected for processing (5)
  • src/main/java/com/cotato/cokerthon/domain/chore/controller/GroupChoreController.java
  • src/main/java/com/cotato/cokerthon/domain/chore/dto/response/GroupChoreCalendarResponse.java
  • src/main/java/com/cotato/cokerthon/domain/chore/dto/response/GroupChoreDailyResponse.java
  • src/main/java/com/cotato/cokerthon/domain/chore/repository/GroupChoreRepository.java
  • src/main/java/com/cotato/cokerthon/domain/chore/service/GroupChoreService.java

📝 Walkthrough

Walkthrough

Added daily and calendar chore retrieval APIs. The service validates groups, queries chores by date or inclusive date range, computes daily completion counts, groups calendar results by date, and returns response records through new controller endpoints.

Changes

Group chore date views

Layer / File(s) Summary
Date-based response contracts
src/main/java/com/cotato/cokerthon/domain/chore/dto/response/GroupChoreDailyResponse.java, src/main/java/com/cotato/cokerthon/domain/chore/dto/response/GroupChoreCalendarResponse.java
Added records for daily totals and calendar entries containing dates and chore lists.
Date query and service aggregation
src/main/java/com/cotato/cokerthon/domain/chore/repository/GroupChoreRepository.java, src/main/java/com/cotato/cokerthon/domain/chore/service/GroupChoreService.java
Added exact-date repository querying, daily completion counting, and inclusive date-range grouping with empty entries for dates without chores.
Date query endpoints
src/main/java/com/cotato/cokerthon/domain/chore/controller/GroupChoreController.java
Added daily and calendar GET endpoints with date parameter binding and successful response wrapping.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Sequence Diagram(s)

sequenceDiagram
  participant Client
  participant GroupChoreController
  participant GroupChoreService
  participant GroupChoreRepository
  Client->>GroupChoreController: GET daily or calendar chores
  GroupChoreController->>GroupChoreService: delegate date query
  GroupChoreService->>GroupChoreRepository: fetch matching group chores
  GroupChoreRepository-->>GroupChoreService: return chore entries
  GroupChoreService-->>GroupChoreController: return response DTO
  GroupChoreController-->>Client: return CommonResponse
Loading
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/chore-by-date

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant