[Feat] 세모피드 조회 응답값 추가 및 세모피드 이모지 추가 및 감소 기능 추가#140
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)
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! 이번 변경은 세모피드에 사용자가 이모지로 반응할 수 있는 기능을 추가하고, 피드 목록 조회 시 필요한 부가 정보를 응답값에 포함하여 사용자 경험을 개선하는 데 목적이 있습니다. 또한, 데이터 조회 시 발생할 수 있는 성능 이슈를 사전에 방지하기 위해 배치 쿼리를 도입하였습니다. 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
이번 풀이 리퀘스트는 세모피드에 이모지 반응(FIRE, HEART, CONGRATS, LAUGH)을 추가하고 토글할 수 있는 기능을 구현하였습니다. 이를 위해 SemoFeedEmoji 엔티티, 관련 레포지토리, 서비스 레이어 및 API 엔드포인트를 새롭게 추가하고, 기존 피드 목록 조회 시 이모지 개수와 본인의 반응 여부를 함께 반환하도록 DTO와 조회 로직을 개선하였습니다. 리뷰어는 SemoFeedEmojiService에서 동시성 예외(DataIntegrityViolationException)를 try-catch로 처리할 때 JPA의 지연 쓰기 및 트랜잭션 롤백 마킹 메커니즘으로 인해 의도대로 동작하지 않고 예외가 전파되거나 롤백되는 문제를 지적하였습니다. 또한, userId가 null로 넘어올 경우 userRepository.findById(null) 호출로 인해 IllegalArgumentException이 발생할 수 있는 위험에 대해 방어적 코드 작성을 제안하였습니다.
7a3f806 to
70a1769
Compare
🧾 요약
🔗 이슈
✨ 변경 내용
FIRE,HEART,CONGRATS,LAUGHPOST /api/semofeed/{semoFeedId}/emojis이모지 토글 API 추가GET /api/semofeed응답에 작성자userId,profileUrl,nickname추가GET /api/semofeed응답에emojiCounts,reactedByMe,mine추가✅ 확인