Skip to content

Feat: 미작성 리뷰 개수 조회#65

Merged
neibler merged 1 commit intodevelopfrom
feature/63
Jan 28, 2026
Merged

Feat: 미작성 리뷰 개수 조회#65
neibler merged 1 commit intodevelopfrom
feature/63

Conversation

@neibler
Copy link
Copy Markdown
Contributor

@neibler neibler commented Jan 28, 2026

🔍️ 작업 내용

  • Closes #

✨ 상세 설명

🛠️ 추후 리팩토링 및 고도화 계획

📸 스크린샷 (선택)

💬 리뷰 요구사항

Summary by CodeRabbit

릴리스 노트

  • New Features
    • 사용자가 남겨야 할 리뷰의 개수를 조회할 수 있는 새로운 엔드포인트가 추가되었습니다. 초기 리뷰와 한 달 후 리뷰 등 작성 가능한 모든 대기 중인 리뷰를 자동으로 계산하여 제공합니다.

✏️ Tip: You can customize this high-level summary in your review settings.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Jan 28, 2026

요약

대기 중인 리뷰 개수를 조회하는 새로운 엔드포인트를 추가합니다. ReviewController에 GET /api/users/me/reviews/pending/count 엔드포인트가 추가되었으며, ReviewService의 새로운 메서드가 두 단계(INITIAL, ONE_MONTH)의 리뷰 가능 여부를 판단하여 개수를 반환합니다.

변경 사항

집합 / 파일 요약
리뷰 컨트롤러
src/main/java/com/ongil/backend/domain/review/controller/ReviewController.java
인증된 사용자의 대기 중인 리뷰 개수를 조회하는 엔드포인트 추가 (getPendingReviewCount). DataResponse 래퍼로 PendingReviewCountResponse 반환
응답 DTO
src/main/java/com/ongil/backend/domain/review/dto/response/PendingReviewCountResponse.java
pendingReviewCount 필드를 가진 새로운 응답 DTO 클래스 추가. Lombok @Getter, @Builder 및 Swagger 주석 포함
리뷰 서비스
src/main/java/com/ongil/backend/domain/review/service/ReviewService.java
사용자별 대기 중인 리뷰 개수를 계산하는 메서드 추가. 기존 저장소 메서드를 활용하여 N+1 쿼리 회피. INITIAL 및 ONE_MONTH 두 단계의 리뷰 적격성 판단

예상 코드 리뷰 규모

🎯 2 (Simple) | ⏱️ ~10 minutes

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed PR 제목은 미작성 리뷰 개수 조회 기능을 명확하게 설명하고 있으며, 변경사항의 주요 목적을 정확히 반영합니다.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings

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.

❤️ Share

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

@neibler neibler merged commit 96228b1 into develop Jan 28, 2026
1 check passed
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