[Fix] SemoFeedService 탈퇴 유저 체크 누락 수정#211
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! 본 PR은 세모피드 생성 시 탈퇴한 유저에 대한 검증이 누락되었던 문제를 해결합니다. 기존의 직접적인 레포지토리 접근 방식에서 UserReader를 통한 활성 유저 조회 방식으로 변경하여 데이터 정합성을 강화했습니다. Highlights
New Features🧠 You can now enable Memory (public preview) to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize the Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counterproductive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request refactors SemoFeedService to use UserReader instead of UserRepository for retrieving active users. However, the corresponding test class SemoFeedServiceTest was not updated to mock UserReader, which will lead to a NullPointerException during test execution.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
| private final SemoFeedRepository semoFeedRepository; | ||
| private final SemoFeedEmojiRepository semoFeedEmojiRepository; | ||
| private final UserRepository userRepository; | ||
| private final UserReader userReader; |
There was a problem hiding this comment.
🧾 요약
🔗 이슈
✨ 변경 내용
SemoFeedService의 의존성을UserRepository→UserReader로 교체create()메서드에서userReader.findActiveUserById(userId)로 활성 유저만 조회하도록 변경✅ 확인