Skip to content

Conversation

@yongjun0511
Copy link
Collaborator

No description provided.

@yongjun0511 yongjun0511 self-assigned this Sep 22, 2025
@yongjun0511 yongjun0511 merged commit 97391f0 into main Sep 22, 2025
1 check passed
@gemini-code-assist
Copy link

Summary of Changes

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

이 풀 리퀘스트는 v2.0.7 릴리즈를 위한 변경사항을 포함합니다. 주요 변경사항은 파트너십 정보 표시의 정확성을 높이고, 파트너십이 사용자에게 노출되는 기간을 확장하여 최신 파트너십 정보가 더 오랫동안 유지되도록 개선하는 것입니다.

Highlights

  • 파트너십 정보 표시 개선: PartnershipInfo DTO에서 collegeName 필드의 '총학' 레이블이 '총학생회'로 더 명확하게 수정되었습니다.
  • 파트너십 가시성 기간 확장: 파트너십 조회 쿼리(PartnershipRepositoryPartnershipRestaurantRepository)에서 startDate 필터링 로직이 p.startDate <= current_date에서 p.startDate >= current_date - 7로 변경되어, 파트너십이 시작일로부터 7일간 더 표시되도록 수정되었습니다.
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

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

v2.0.7 릴리즈를 위한 변경 사항들을 검토했습니다. 제휴 정보를 가져오는 로직이 최근 7일 이내에 시작된 제휴만 포함하도록 수정되었습니다. 이 과정에서 JPQL 쿼리에 상수로 관리하면 더 좋을 숫자(매직 넘버)가 사용되었고, SQL 키워드의 대소문자가 일관되지 않은 부분이 있어 이에 대한 피드백을 남깁니다. '총학'을 '총학생회'로 변경하여 명확성을 높인 점은 좋습니다.

or (pc is null and pd is null)
)
and p.startDate <= current_date
and p.startDate >= current_date - 7

Choose a reason for hiding this comment

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

medium

JPQL 쿼리 내에 매직 넘버 7이 사용되었습니다. 이 값은 '최근 제휴를 보여주기 위한 기간'이라는 의미를 가지는 것으로 보입니다. 이처럼 의미를 가지는 숫자는 상수로 정의하여 사용하면 코드의 가독성과 유지보수성을 높일 수 있습니다. 예를 들어, PARTNERSHIP_LOOKBACK_DAYS와 같은 이름의 상수로 관리하는 것을 고려해 보세요.

LEFT JOIN FETCH p.partnershipCollege
LEFT JOIN FETCH p.partnershipDepartment
WHERE p.startDate <= CURRENT_DATE and (p.endDate is null or p.endDate >= CURRENT_DATE)""")
WHERE p.startDate >= current_date - 7 and (p.endDate is null or p.endDate >= CURRENT_DATE)""")

Choose a reason for hiding this comment

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

medium

이 쿼리에는 두 가지 개선점을 제안합니다.

  1. 매직 넘버 사용: PartnershipRepository와 마찬가지로 숫자 7이 매직 넘버로 사용되었습니다. 이 값을 상수로 추출하여 관리하면 여러 곳에서 동일한 값을 일관되게 사용하고 변경이 필요할 때 한 번에 수정할 수 있어 유지보수성이 향상됩니다.

  2. SQL 키워드 대소문자 불일치: 쿼리 내에서 current_dateCURRENT_DATE가 함께 사용되고 있습니다. 기능적으로는 문제가 없지만, 코드의 일관성을 위해 하나의 스타일(예: 소문자)로 통일하는 것이 좋습니다.

            WHERE p.startDate >= current_date - 7 and (p.endDate is null or p.endDate >= current_date)")

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.

2 participants