Repository navigation
feat: 프로필 이메일 및 캘린더 코스 상태 응답 추가 - #69
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (10)
📝 WalkthroughWalkthroughThe PR extends calendar course responses with ChangesResponse field updates
Estimated code review effort: 2 (Simple) | ~10 minutes Mergeability Score: ⚪ Minimal · up to The PR adds profile email and calendar course-status fields without introducing an identified merge-blocking risk; it is ready to merge after normal checks and review. Possibly related PRs
Suggested labels: Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
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. Comment |
🔗 관련 이슈
📌 What is this PR?
마이페이지에서 사용자 이메일을 표시하고, 기록 캘린더에서 완료된 코스만 일기 작성 대상으로 구분할 수 있도록 API 응답을 개선합니다.
🔨 Changes
GET /users/profile응답에email필드를 추가했습니다.GET /courses/calendar의CalendarCourse응답에courseStatus필드를 추가했습니다.PLANNING,IN_PROGRESS,COMPLETED,CANCELED상태를 확인할 수 있습니다.courseStatus === "COMPLETED"인 코스만 일기 작성 대상으로 활성화할 수 있습니다.📷 Result
프로필 응답
{ "userId": 1, "email": "user@example.com", "nickname": "daytodo", "profileImageUrl": "profile.png" } ### 캘린더 코스 응답 { "courseId": 100, "courseName": "서울 나들이", "participantType": "FRIEND", "memberCount": 3, "courseStatus": "COMPLETED" } ### 테스트 - UserServiceTest - ProfileServiceTest - UserControllerTest - TargetApiSecurityTest - CourseServiceTest 관련 테스트와 빌드가 모두 통과했습니다. <br /> ## 💬 To. Reviewer - UserResponse.Profile은 조회와 수정 API에서 공통으로 사용되므로 두 응답 모두 email이 포함됩니다. - 캘린더 조회는 기존에 Course 엔티티를 조회하고 있어 courseStatus 추가에 따른 별도 쿼리나 DB 변경은 없습니다. - 기존 응답 필드는 유지하고 필드만 추가한 하위 호환 변경입니다. <br /> ## ✅ 체크 리스트 - [ ] base 브랜치(develop 또는 main) 최신 상태 pull 및 충돌 확인 완료 - [ ] Reviewers 설정 - [ ] Assignees 설정 - [ ] Labels 설정 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Calendar course information now includes each course’s status. * Profile responses now display the account email address. * **Bug Fixes** * Profile updates and retrievals consistently preserve and return email information. * Calendar results correctly distinguish courses with different statuses. * **Tests** * Added coverage for course statuses and email visibility in profile responses. <!-- end of auto-generated comment: release notes by coderabbit.ai -->