Skip to content

feat: 전날 순위 top3 제공 기능 구현#117

Merged
wlgns12370 merged 1 commit intomainfrom
feat/#116
Mar 17, 2026
Merged

feat: 전날 순위 top3 제공 기능 구현#117
wlgns12370 merged 1 commit intomainfrom
feat/#116

Conversation

@wlgns12370
Copy link
Contributor

@wlgns12370 wlgns12370 commented Mar 17, 2026

추후 작성 예정

Summary by CodeRabbit

릴리스 노트

  • 새로운 기능
    • 부스의 일일 순위 조회 기능이 추가되었습니다.
    • 오늘의 인기 부스 순위를 확인할 수 있습니다.
    • 과거 특정 날짜의 부스 순위도 조회할 수 있습니다.

@wlgns12370 wlgns12370 added the Ship 리뷰 없이 변경을 바로 머지하는 경우 label Mar 17, 2026
@coderabbitai
Copy link

coderabbitai bot commented Mar 17, 2026

Caution

Review failed

Pull request was closed or merged during review

📝 Walkthrough

관점

일일 부스 순위 조회 기능을 추가합니다. 새로운 저장소 계층을 통해 일일 좋아요 데이터를 쿼리하고, 서비스 및 컨트롤러에서 이를 노출하는 두 개의 새로운 API 엔드포인트를 제공합니다.

변경 사항

Cohort / File(s) 요약
일일 순위 저장소
src/main/java/kr/co/knuserver/domain/booth/repository/BoothLikeDailyRepository.java
booth_like_daily 테이블을 쿼리하여 특정 날짜의 상위 부스 목록을 like_count 기준으로 정렬하여 반환하는 새로운 JDBC 기반 저장소 클래스 추가
서비스 및 컨트롤러 통합
src/main/java/kr/co/knuserver/application/booth/BoothQueryService.java, src/main/java/kr/co/knuserver/presentation/booth/BoothApiController.java
BoothQueryService에 getDailyRanking(String date) 메서드 추가, BoothApiController에서 /ranking/daily 및 /ranking/daily/{date} 엔드포인트 구현, BoothCommandService 의존성 제거

시퀀스 다이어그램

sequenceDiagram
    participant Client as 클라이언트
    participant Controller as BoothApiController
    participant Service as BoothQueryService
    participant Repository as BoothLikeDailyRepository
    participant Database as booth_like_daily 테이블

    Client->>Controller: GET /ranking/daily/{date}
    Controller->>Service: getDailyRanking(date)
    Service->>Repository: findTopByDate(date, limit=3)
    Repository->>Database: SELECT booth_id, name, like_count<br/>WHERE date = ?<br/>ORDER BY like_count DESC LIMIT 3
    Database-->>Repository: ResultSet 반환
    Repository-->>Service: List<BoothRankingResponseDto>
    Service-->>Controller: List<BoothRankingResponseDto>
    Controller-->>Client: 200 OK (JSON)
Loading

예상 코드 리뷰 노력

🎯 3 (중간) | ⏱️ ~20분

관련 가능성 있는 이슈

관련 가능성 있는 PR

  • PR #91: BoothQueryService에 좋아요/순위 관련 기능을 추가하여 유사한 도메인 로직을 확장합니다.
  • PR #55: 이 PR의 기초가 되는 BoothQueryService를 도입한 PR입니다.

제안된 레이블

Show

🐰 부스의 일일 순위를 세우니,
가장 사랑받은 곳이 빛나네.
매일 아침 순위 새로 갱신되고,
부스들의 경쟁이 한층 돋보여.
날짜별 랭킹, 이제 손끝에! ✨

🚥 Pre-merge checks | ✅ 1 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Description check ⚠️ Warning Pull request 설명이 미작성 상태이며, 저장소의 필수 템플릿 섹션들이 비어 있습니다. 템플릿에 따라 구현한 기능, 논의하고 싶은 내용, 기타 사항을 작성하여 pull request 설명을 완성해 주세요.
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (1 passed)
Check name Status Explanation
Title check ✅ Passed Pull request 제목이 변경 사항의 주요 내용을 명확하게 나타냅니다. 전날 순위 top3 기능 구현이라는 핵심 변경사항을 정확히 설명합니다.

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

✨ Finishing Touches
  • 📝 Generate docstrings (stacked PR)
  • 📝 Generate docstrings (commit on current branch)
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/#116
📝 Coding Plan
  • Generate coding plan for human review comments

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.

Tip

CodeRabbit can suggest fixes for GitHub Check annotations.

Configure the reviews.tools.github-checks setting to adjust the time to wait for GitHub Checks to complete.

@wlgns12370 wlgns12370 merged commit 85ab2ea into main Mar 17, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Ship 리뷰 없이 변경을 바로 머지하는 경우

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[🛠 기능 구현] 전날 순위 top3 제공 기능 구현

1 participant