Repository navigation
[Feat] 인증 게시글 좋아요/스크랩 응답에 개수 추가 - #382
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Team Run ID: 📒 Files selected for processing (4)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthrough인증 게시글의 좋아요 및 스크랩 등록·취소 처리 후 최신 개수를 조회합니다. 응답 DTO와 변환기에 개수 필드를 추가합니다. 관련 서비스 테스트는 개수 조회와 반환값을 검증합니다. Changes인증 게시글 개수 응답
Estimated code review effort: 3 (Moderate) | ~20 minutes Merge Risk: ⚪ Minimal · up to This PR adds current like and scrap counts to authenticated post action responses without introducing an actionable merge-blocking risk; it is merge-ready after normal checks and review. Sequence Diagram(s)sequenceDiagram
participant VerificationServiceImpl
participant VerificationScrapRepository
participant VerificationLikeRepository
participant VerificationConverter
participant ResponseDto
VerificationServiceImpl->>VerificationScrapRepository: 스크랩 개수 조회
VerificationScrapRepository-->>VerificationServiceImpl: scrapCount
VerificationServiceImpl->>VerificationConverter: 스크랩 응답 변환
VerificationConverter-->>ResponseDto: scrapCount 포함
VerificationServiceImpl->>VerificationLikeRepository: 좋아요 개수 조회
VerificationLikeRepository-->>VerificationServiceImpl: likeCount
VerificationServiceImpl->>VerificationConverter: 좋아요 응답 변환
VerificationConverter-->>ResponseDto: likeCount 포함
Poem
🚥 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 |
#️⃣ 연관된 이슈
✨ 작업 내용 (Summary)
인증 게시글의 좋아요/스크랩 등록 및 취소 API 응답에 현재 개수를 추가했습니다.
프론트에서 좋아요/스크랩 처리 후 상세 조회 API를 다시 호출하지 않고도 즉시 개수를 갱신할 수 있도록 개선했습니다.
✅ 변경 사항 체크리스트
🧪 테스트 결과
📸 스크린샷
💬 리뷰 요구사항
기존 로직에 변화가 없는지 확인 부탁드립니다.
📎 참고 자료
Summary by CodeRabbit
새로운 기능
버그 수정
테스트