[Fix] 개인 통계 필터 추가#187
Conversation
Walkthrough이번 변경에서는 사용 내역 집계 쿼리에서 사용자와 현재 달로 한정하는 필터가 추가되었습니다. 또한, 서비스 계층에서 집계 버킷 추출 방식이 필터 집계 하위의 "rank" 서브 집계를 통해 가져오도록 수정되었습니다. 기타 로직에는 변화가 없습니다. Changes
Sequence Diagram(s)sequenceDiagram
participant UserService
participant CustomUsageHistoryDocumentRepositoryImpl
participant Elasticsearch
UserService->>CustomUsageHistoryDocumentRepositoryImpl: getUsageDateAndDiffAndCount(user)
CustomUsageHistoryDocumentRepositoryImpl->>Elasticsearch: Query with user+current month filter, filter+rank aggs
Elasticsearch-->>CustomUsageHistoryDocumentRepositoryImpl: Aggregated results (with filter+rank)
CustomUsageHistoryDocumentRepositoryImpl-->>UserService: Aggregation results
UserService->>UserService: Extract buckets from filter->rank sub-aggregation
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
Note ⚡️ Unit Test Generation is now available in beta!Learn more here, or try it out under "Finishing Touches" below. 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
🧰 Additional context used🧠 Learnings (1)📓 Common learnings⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
🔇 Additional comments (6)
✨ 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 comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
#️⃣연관된 이슈
📝작업 내용
📷스크린샷 (선택)
💬리뷰 요구사항(선택)
Summary by CodeRabbit
신규 기능
버그 수정