Conversation
Goal 조회 시 하위 Task 기반 통계(totalTaskCount, completedTaskCount, achievementRate)를 응답 시 계산하여 반환한다. DataLoader로 N+1 방지. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Repository는 단순 조회(findAllByGoalIds)만 수행하고, TaskService에서 Task 목록 기반으로 통계를 계산하도록 변경. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
집계 결과 DTO이므로 아키텍처 규칙에 따라 application/dto/에 배치. GoalTaskStats → GoalTaskStatsDto로 이름 변경. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
totalTaskCount,completedTaskCount,achievementRatecomputed fields 추가Changes
goal.graphqls— Goal 타입에 통계 필드 3개 추가GoalTaskStats— 집계 도메인 모델 (achievementRate 계산 포함)TaskRepository.countByGoalIds— GROUP BY 집계 쿼리GoalTaskStatsDataLoader— batch loader로 N+1 방지GoalTaskStatsDataFetcher—@DgsData(parentType = "Goal")으로 통계 필드 resolveTest plan
Closes #18
🤖 Generated with Claude Code