🐛 Fix: track studied lesson progress - #118
Merged
Merged
Conversation
- 완료 강의 수: CourseMapper 하드코딩 0 → Chapter.status=COMPLETED 실집계(N+1 회피 벌크 조회) - '오늘 1강의 듣기' 미션: 오늘 완료강의 0/1 클램프 - '오늘 학습 N분' 미션: current=study_time_log 합산, target=User.dailyStudyGoalMinutes(설정값), 노트 미션 삭제 - AssignmentService 관련 변경 동봉
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.
연결 Issue
없음
작업 유형
변경 내용
Chapter.status가 아닌 사용자별LessonProgress기준으로 집계하도록 변경했습니다.0..totalSlides로 정규화하고, 완료된 강의는completedSlides = totalSlides로 응답하도록 보정했습니다.테스트 방법
sh gradlew test --tests com.swez.backend.domain.course.service.CourseServiceTest --tests com.swez.backend.domain.lesson.service.LessonServiceTest체크리스트
develop브랜치에서 분기했다타입/작업내용)을 따랐다{깃모지} {타입}: {내용}형식을 따른다