Skip to content

Comments

[fix] additionalComposers 조회 방식 변경#79

Merged
k3vin7 merged 1 commit intomainfrom
fix/curation
Feb 16, 2026
Merged

[fix] additionalComposers 조회 방식 변경#79
k3vin7 merged 1 commit intomainfrom
fix/curation

Conversation

@k3vin7
Copy link
Contributor

@k3vin7 k3vin7 commented Feb 16, 2026

Summary

  • 이전 수정에서 사용한 QueryDSL .any() 서브쿼리가 MySQL 환경에서 정상 동작하지 않는 문제 수정
  • 명시적 leftJoin으로 변경하여 additionalComposers에 포함된 작곡가의 토크룸에서도 큐레이션 글이 노출되도록 수정

Test plan

  • 전체 테스트 통과 확인
  • 작곡가 여러 명 선택한 큐레이션 글이 각 작곡가 토크룸에서 노출되는지 확인

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@gemini-code-assist
Copy link

Summary of Changes

Hello @k3vin7, 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은 MySQL 환경에서 발생하던 QueryDSL .any() 서브쿼리 문제를 해결하고, additionalComposers에 포함된 작곡가들의 토크룸에서 큐레이션 글이 제대로 표시되지 않던 버그를 수정합니다. 기존의 서브쿼리 방식을 명시적인 leftJoin으로 변경하여 데이터 조회 로직의 안정성과 정확성을 향상시켰습니다.

Highlights

  • QueryDSL .any() 서브쿼리 문제 해결: MySQL 환경에서 QueryDSL의 .any() 서브쿼리가 정상적으로 동작하지 않던 문제를 수정했습니다.
  • additionalComposers 조회 방식 변경: additionalComposers를 명시적인 leftJoin 방식으로 변경하여, 해당 작곡가들의 토크룸에서도 큐레이션 글이 올바르게 노출되도록 개선했습니다.

🧠 New Feature in Public Preview: You can now enable Memory 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.

Changelog
  • src/main/java/com/daramg/server/post/repository/PostQueryRepositoryImpl.java
    • QComposer 및 JPAExpressions 클래스 임포트가 추가되었습니다.
    • additionalComposers를 조회하는 로직이 .any() 서브쿼리에서 명시적인 leftJoin으로 변경되었습니다.
    • QComposer 인스턴스가 additionalComposer라는 별칭으로 생성되어 조인에 사용되었습니다.
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.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

이 PR은 MySQL에서 QueryDSL.any() 서브쿼리가 동작하지 않는 문제를 해결하기 위해 leftJoin을 사용하도록 쿼리를 수정합니다. 변경 사항은 올바르며 의도한 대로 문제를 해결할 것으로 보입니다. 리뷰에서는 두 가지 점을 지적했습니다. 첫째, 추가되었지만 사용되지 않는 import 문을 제거하여 코드 청결성을 높일 것을 제안했습니다. 둘째, 현재 페이징 방식이 대량의 데이터 조회 시 성능 문제를 일으킬 수 있음을 지적하고, 데이터베이스 수준에서 페이징을 처리하도록 리팩토링할 것을 권장했습니다. 이는 애플리케이션의 확장성과 안정성을 위해 중요한 개선 사항입니다.

import com.daramg.server.composer.domain.QComposer;
import com.querydsl.core.BooleanBuilder;
import com.querydsl.core.types.dsl.EntityPathBase;
import com.querydsl.jpa.JPAExpressions;

Choose a reason for hiding this comment

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

medium

이 import는 코드에서 사용되지 않는 것 같습니다. 불필요한 import는 코드 가독성을 해치고 잠재적인 혼란을 야기할 수 있으므로 제거하는 것이 좋습니다.

@k3vin7 k3vin7 merged commit b407f4b into main Feb 16, 2026
1 check 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