Skip to content

Conversation

@jbh010204
Copy link
Member

Warning

이슈와 프로젝트(Project) 연결 시 반드시 주의하세요.
이는 업무 효율도를 위해서 사용하는 것이지 때문에 협조 부탁드립니다. 추가로, 완료 된 PR 이라면 리뷰어를 직접적으로 연결해주세요 :)

📌 연결된 이슈

📖 주요 변경 사항

변경 된 사항에 대해서 개조식으로 작성해주세요

🔖 작업 내용 요약

작업한 내용에 대해서, 간단하게 요약해주세요

Feed

  • 피드 생성/수정/삭제/상세/목록 조회
  • 메인 페이지용 피드 조회 (/feeds/main)
  • 메인 페이지용 커뮤니티별 제목 조회 (/feeds/main/titles)
  • 커뮤니티별 피드 조회(커서 기반) (/communities/{communityId}/feeds)
  • 피드 좋아요/댓글 수 집계 포함 (Query JDBC 집계)
  • 피드 요약 시 contentPreview 적용

Comment

  • 피드 댓글 생성/조회/수정
  • 댓글 좋아요/취소

Like

  • 좋아요 도메인 분리 (Like, LikeTargetType)
  • 피드/댓글 좋아요 추가 및 취소
  • 중복 좋아요 방지 및 대상 존재 여부 검증

😎 질문

작업하면서 궁금했던 점이나, 공유하고 싶은 내용이 있다면 작성해주세요

Feed 조회

  • 집계 최적화: comment_count/like_count를 매 조회마다 집계하므로 고트래픽에서는 집계 테이블/캐시가 필요할 수 있음
  • 커서 정책 명확화: 현재 커서는 id 기준이므로, 정렬/동일시 tie-breaker 정책 문서화 필요
  • 메인/타이틀 조회 캐시 전략: 빈도 높은 조회 경로에 TTL 캐시 적용 후보

Like

  • 실시간 집계 정확도 vs 성능: 즉시 반영을 고집하면 조회 비용 증가, 캐시/비동기 집계 시 최신성 저하
  • 대상 확장성: LikeTargetType 확장 시 공통 검증/인덱스 설계 재검토 필요

Comment

  • 좋아요 집계/정렬 기준: 댓글 인기순 정렬 요구가 생기면 집계/쿼리 비용 증가 가능

@jbh010204 jbh010204 self-assigned this Jan 21, 2026
@gemini-code-assist
Copy link

Summary of Changes

Hello @jbh010204, 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!

이 Pull Request는 애플리케이션의 피드 조회 기능을 대폭 개선하고, 피드와 댓글에 대한 좋아요 기능을 새롭게 도입하여 사용자 참여를 증진시키는 것을 목표로 합니다. 다양한 조회 요구사항을 충족시키기 위해 여러 종류의 피드 조회 API를 추가하고, 데이터 집계 로직을 최적화하여 성능과 확장성을 고려했습니다. 또한, 프로젝트 구조와 개발 가이드라인을 명확히 하는 문서를 추가하여 팀원들의 이해도를 높였습니다.

Highlights

  • 피드 조회 기능 확장: 메인 페이지용 피드(상세 및 제목만), 커뮤니티별 피드(무한 스크롤 및 제목만) 등 다양한 피드 조회 API가 추가되었습니다. 기존 피드 요약(FeedSummary) DTO에 본문 미리보기, 좋아요 수, 댓글 수가 포함되어 더 풍부한 정보를 제공합니다.
  • 좋아요 기능 구현: 피드와 댓글에 대한 좋아요/취소 기능이 구현되었습니다. Like 도메인과 LikeTargetType (FEED, COMMENT)을 분리하여 확장성을 확보했으며, 중복 좋아요 방지 및 대상 존재 여부 검증 로직이 포함되었습니다.
  • CQRS 패턴 기반 JDBC 쿼리 최적화: 좋아요 및 댓글 수 집계를 위해 JDBC 쿼리에 LEFT JOIN과 서브쿼리를 활용하여 최적화했습니다. FeedQueryPort 및 FeedJdbcRepositoryImpl에 새로운 조회 메서드들이 추가되었습니다.
  • 새로운 문서 추가 및 업데이트: 프로젝트의 전반적인 아키텍처, 기술 스택, 테스트 전략 등을 설명하는 PROJECT_OVERVIEW.md와 피드 기능 개선 로드맵을 담은 Feed.md 문서가 추가되었습니다.
Using Gemini Code Assist

The 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 /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize 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 .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. 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.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@BaeJunH0 BaeJunH0 added the ✨ Feature Feature Develop label Jan 26, 2026
Copy link
Member

@BaeJunH0 BaeJunH0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

오랜만에 보니까 글자가 튕기기도 하고... 세세하게 리뷰하지는 못했지만, 잘돌아가게 만들어주신 것 같습니다!
앞으로는 제가 맡을 부분이니 보완할 점이 있다면 보완하고, 좋은 점이 있으면 흡수하면서 잘 이어나가 보겠습니다~

@BaeJunH0 BaeJunH0 merged commit 7de88a6 into develop Jan 28, 2026
3 checks passed
@BaeJunH0 BaeJunH0 deleted the feat/#51 branch January 28, 2026 05:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

✨ Feature Feature Develop

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[📌 Feature] FeedStatus(좋아요) 추가 및 Feed DTO 변경

3 participants