-
Notifications
You must be signed in to change notification settings - Fork 2
[Fix] 개인 통계 필터 추가 #187
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
[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 (
|
hayong39
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
수고하셨습니다!
#️⃣연관된 이슈
📝작업 내용
📷스크린샷 (선택)
💬리뷰 요구사항(선택)
Summary by CodeRabbit
신규 기능
버그 수정