-
Notifications
You must be signed in to change notification settings - Fork 0
Refactor: 메뉴 랭킹 내 이미지 필드 추가 #309
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Caution Review failedThe pull request is closed. Walkthrough인기 메뉴 DTO에 imageUrl 필드를 추가하고, 인기 메뉴 조회 서비스에서 메뉴 이미지(첫 번째 이미지)를 조회해 DTO에 포함하도록 로직을 확장했다. MenuImageRepository에 일괄 조회 메서드를 추가했다. 통계 커스텀 리포지터리에서 전일 매출 합계 계산 구간을 [start-1day, start)로 정정했다. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant AdminClient as Admin Client
participant Service as PopularMenuRedisServiceImpl
participant Redis as Redis/ZSet
participant Repo as MenuImageRepository
AdminClient->>Service: getTop5PopularMenus(storeId, date)
Service->>Redis: ZREVRANGE top-5 (store/date)
Redis-->>Service: [(menuId, sold), ...]
Service->>Repo: findByMenuIdInOrderByIdAsc(menuIds)
Repo-->>Service: List<MenuImage> (정렬됨)
Note over Service: 메뉴별 첫 이미지 URL 매핑 (신규)
Service-->>AdminClient: List<PopularMenuDto(menuId, name, sold, imageUrl)
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Suggested reviewers
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 💡 Knowledge Base configuration:
You can enable these sources in your CodeRabbit configuration. 📒 Files selected for processing (4)
✨ Finishing Touches
🧪 Generate unit tests
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
CodeRabbit Configuration File (
|
작업 요약
Issue Link
#308
문제점 및 어려움
해결 방안
Reference
Summary by CodeRabbit