Skip to content

Comments

πŸš‘οΈ [배포 ν›„ κΈ΄κΈ‰ μˆ˜μ •] : λ©”μ‹œμ§€ 전솑 μ•ˆλ˜λŠ” 문제 ν•΄κ²°#147

Merged
passionryu merged 1 commit intodevfrom
feat/message
Jul 24, 2025
Merged

πŸš‘οΈ [배포 ν›„ κΈ΄κΈ‰ μˆ˜μ •] : λ©”μ‹œμ§€ 전솑 μ•ˆλ˜λŠ” 문제 ν•΄κ²°#147
passionryu merged 1 commit intodevfrom
feat/message

Conversation

@passionryu
Copy link
Collaborator

@passionryu passionryu commented Jul 24, 2025

Summary by CodeRabbit

  • μ‹ κ·œ κΈ°λŠ₯

    • μ„€μ • ID둜 단일 μ„€μ • 정보λ₯Ό μ•ˆμ „ν•˜κ²Œ μ‘°νšŒν•  수 μžˆλŠ” κΈ°λŠ₯이 μΆ”κ°€λ˜μ—ˆμŠ΅λ‹ˆλ‹€.
    • μ„€μ • 쑰회 μ‹œ μ—°κ΄€λœ ν‚€μ›Œλ“œ, 차단 ν‚€μ›Œλ“œ, μš”μΌ 정보λ₯Ό ν•¨κ»˜ λΆˆλŸ¬μ˜€λŠ” κΈ°λŠ₯이 μΆ”κ°€λ˜μ—ˆμŠ΅λ‹ˆλ‹€.
  • 버그 μˆ˜μ •

    • 카카였 λ©”μ‹œμ§€ λ°œμ†‘ μ‹œ μ‚¬μš©μžμ˜ μ„€μ •λ³„λ‘œ ν˜„μž¬ μ‹œκ°„(λΆ„ λ‹¨μœ„)에 λ§žλŠ” μ„€μ •λ§Œ ν•„ν„°λ§ν•˜μ—¬ λ©”μ‹œμ§€λ₯Ό μ „μ†‘ν•˜λ„λ‘ κ°œμ„ λ˜μ—ˆμŠ΅λ‹ˆλ‹€.
    • 각 μ„€μ •λ³„λ‘œ μ΅œλŒ€ 5개의 λ‰΄μŠ€λ₯Ό κ°œλ³„μ μœΌλ‘œ μ‘°νšŒν•˜κ³ , 이λ ₯ μ €μž₯ μ‹œ 쀑볡을 λ°©μ§€ν•˜λ„λ‘ μˆ˜μ •λ˜μ—ˆμŠ΅λ‹ˆλ‹€.
  • λ¦¬νŒ©ν„°λ§/μŠ€νƒ€μΌ

    • μ½”λ“œ λ‚΄ 주석 및 포맷이 κ°œμ„ λ˜μ–΄ 가독성이 ν–₯μƒλ˜μ—ˆμŠ΅λ‹ˆλ‹€.

@coderabbitai
Copy link

coderabbitai bot commented Jul 24, 2025

Caution

Review failed

The pull request is closed.

Walkthrough

이 변경사항은 카카였 λ©”μ‹œμ§€ λ°œμ†‘ λ‘œμ§μ—μ„œ μ‚¬μš©μž 섀정을 ν˜„μž¬ μ‹œκ°„(λΆ„ λ‹¨μœ„) κΈ°μ€€μœΌλ‘œ ν•„ν„°λ§ν•˜μ—¬ ν•΄λ‹Ή μ‹œκ°„μ—λ§Œ λ©”μ‹œμ§€λ₯Ό 보내도둝 μˆ˜μ •ν•˜μ˜€κ³ , 각 μ„€μ •λ³„λ‘œ λ‰΄μŠ€ 검색 및 νžˆμŠ€ν† λ¦¬ μ €μž₯을 κ°œλ³„μ μœΌλ‘œ μ²˜λ¦¬ν•˜λŠ” λ°©μ‹μœΌλ‘œ μ „ν™˜ν•˜μ˜€μŠ΅λ‹ˆλ‹€. λ˜ν•œ, μ„€μ • μ—”ν‹°ν‹° 쑰회 μ‹œ μ—°κ΄€ μ»¬λ ‰μ…˜μ„ fetch join으둜 μ¦‰μ‹œ λ‘œλ”©ν•˜λŠ” 리포지토리 λ©”μ„œλ“œμ™€, 단일 섀정을 μ˜ˆμ™Έ μ²˜λ¦¬μ™€ ν•¨κ»˜ μ‘°νšŒν•˜λŠ” μ„œλΉ„μŠ€ λ©”μ„œλ“œκ°€ μΆ”κ°€λ˜μ—ˆμŠ΅λ‹ˆλ‹€. μŠ€μΌ€μ€„λŸ¬ κ΄€λ ¨ ν΄λž˜μŠ€μ—λŠ” 주둜 주석 및 ν¬λ§€νŒ… κ°œμ„ μ΄ μ΄λ£¨μ–΄μ‘ŒμŠ΅λ‹ˆλ‹€.

Changes

파일/경둜 μš”μ•½ λ³€κ²½ μš”μ•½
.../Kakao/service/KakaoMessageService.java - ν˜„μž¬ μ‹œκ°„(λΆ„ λ‹¨μœ„)둜 μ‚¬μš©μž μ„€μ • 필터링
- 섀정별 λ‰΄μŠ€ κ°œλ³„ 쑰회 및 νžˆμŠ€ν† λ¦¬ μ €μž₯(getNewsEsDocumentList_Fixed μ‹ μ„€)
- λ©”μ‹œμ§€ ν…œν”Œλ¦Ώ ID λ³€κ²½
- null 처리 및 쀑볡 νžˆμŠ€ν† λ¦¬ λ°©μ§€ 둜직 μΆ”κ°€
- κΈ°μ‘΄ 방식 주석 처리 및 ν¬λ§€νŒ… κ°œμ„ 
.../Mypage/Repository/SettingRepository.java - μ—°κ΄€ μ»¬λ ‰μ…˜(days, keywords, blockKeywords)을 fetch join으둜 μ¦‰μ‹œ λ‘œλ”©ν•˜λŠ” findByIdWithAllAssociations λ©”μ„œλ“œ μΆ”κ°€
.../Mypage/service/SettingService.java - 단일 섀정을 μ˜ˆμ™Έ μ²˜λ¦¬μ™€ ν•¨κ»˜ DTO둜 λ°˜ν™˜ν•˜λŠ” getSettingById(Long id) λ©”μ„œλ“œ μΆ”κ°€
.../Global/Scheduler/TaskSchedulerService.java - 주석 및 ν¬λ§€νŒ… κ°œμ„ 
- fetch join κ΄€λ ¨ λŒ€μ•ˆ μ½”λ“œ 주석 μΆ”κ°€
- μ‹€μ œ 둜직 λ³€ν™” μ—†μŒ

Sequence Diagram(s)

sequenceDiagram
    participant Scheduler
    participant KakaoMessageService
    participant SettingRepository
    participant NewsService
    participant HistoryService

    Scheduler->>KakaoMessageService: sendKakaoMessage(token, userId)
    KakaoMessageService->>SettingRepository: findAllByUserId(userId)
    SettingRepository-->>KakaoMessageService: List<Setting>
    KakaoMessageService->>KakaoMessageService: ν˜„μž¬ μ‹œκ°„(λΆ„) κΈ°μ€€ μ„€μ • 필터링
    alt μ„€μ • 있음
        loop 각 섀정별
            KakaoMessageService->>NewsService: getNewsEsDocumentList_Fixed(setting)
            NewsService-->>KakaoMessageService: List<News>
            KakaoMessageService->>HistoryService: saveHistory(setting, news)
            KakaoMessageService->>KakaoMessageService: sendSingleKakaoMessage(...)
        end
    else μ„€μ • μ—†μŒ
        KakaoMessageService->>Scheduler: false λ°˜ν™˜ (둜그 기둝)
    end
Loading

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~18 minutes

Possibly related PRs

  • News-Deliver/Server#116: KakaoMessageServiceμ—μ„œ λ‰΄μŠ€ κ°œλ³„ 쑰회 λ©”μ„œλ“œλ‘œ κ΅μ²΄ν•˜λ©° λ©”μ‹œμ§€ λ°œμ†‘ 문제λ₯Ό ν•΄κ²°ν•˜λŠ” 직접적 μ½”λ“œ 레벨 연관이 μžˆμŠ΅λ‹ˆλ‹€.
  • News-Deliver/Server#132: sendKakaoMessageκ°€ μ—¬λŸ¬ μ‚¬μš©μž 섀정을 κ°œλ³„μ μœΌλ‘œ μ²˜λ¦¬ν•˜λ„λ‘ λ³€κ²½λœ μ μ—μ„œ μ½”λ“œ λ ˆλ²¨μ—μ„œ μ§μ ‘μ μœΌλ‘œ κ΄€λ ¨λ˜μ–΄ μžˆμŠ΅λ‹ˆλ‹€.

Suggested reviewers

  • daumi125
  • moonjun1

Note

⚑️ Unit Test Generation is now available in beta!

Learn more here, or try it out under "Finishing Touches" below.


πŸ“œ Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

πŸ“₯ Commits

Reviewing files that changed from the base of the PR and between a1a14ac and d0ae3cc.

πŸ“’ Files selected for processing (4)
  • SpringBoot/src/main/java/Baemin/News_Deliver/Domain/Kakao/service/KakaoMessageService.java (11 hunks)
  • SpringBoot/src/main/java/Baemin/News_Deliver/Domain/Mypage/Repository/SettingRepository.java (1 hunks)
  • SpringBoot/src/main/java/Baemin/News_Deliver/Domain/Mypage/service/SettingService.java (1 hunks)
  • SpringBoot/src/main/java/Baemin/News_Deliver/Global/Scheduler/TaskSchedulerService.java (6 hunks)
✨ Finishing Touches
  • πŸ“ Generate Docstrings
πŸ§ͺ Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feat/message

πŸͺ§ Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai generate unit tests to generate unit tests for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@passionryu passionryu merged commit 3b0f8f0 into dev Jul 24, 2025
1 of 2 checks 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