Skip to content

[UPLUS-125] 그라파나 링크 적용#37

Merged
arlen02-01 merged 7 commits into
developfrom
feat/UPLUS-125
Jan 26, 2026
Merged

[UPLUS-125] 그라파나 링크 적용#37
arlen02-01 merged 7 commits into
developfrom
feat/UPLUS-125

Conversation

@arlen02-01
Copy link
Copy Markdown
Contributor

@arlen02-01 arlen02-01 commented Jan 26, 2026

🎫 지라 티켓

UPLUS-125


✅ 작업 사항

그라파나 링크적용


📋 체크리스트

  • 코드가 정상적으로 빌드됩니다.
  • 관련 테스트 코드를 작성했습니다.
  • 기존 테스트가 모두 통과합니다.
  • 코드 스타일(Spotless, Checkstyle)을 준수합니다.

⌨ 기타

@github-actions github-actions Bot added the size/S PR size: S label Jan 26, 2026
@github-actions github-actions Bot requested a review from starboxxxx January 26, 2026 05:16
@gemini-code-assist
Copy link
Copy Markdown
Contributor

Summary of Changes

Hello @arlen02-01, 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은 Grafana 대시보드 링크를 업데이트하고, 구독 플랜 조회 로직의 성능을 최적화하며, 템플릿 그룹 검색 기능을 간소화하는 것을 목표로 합니다. 주요 변경 사항은 데이터베이스 쿼리 최적화와 서비스 계층의 코드 리팩토링을 포함하며, 전반적인 시스템 효율성과 코드 유지보수성을 개선합니다.

Highlights

  • Grafana 링크 업데이트: Grafana 대시보드 iframe URL이 application-secret.yml 파일에서 새로운 공용 대시보드 링크로 업데이트되었습니다.
  • 구독 플랜 조회 성능 개선: SubscriptionPlanRepository에서 JOIN FETCH sp.plan을 사용하여 SubscriptionPlan 조회 시 Plan 엔티티를 즉시 로드하도록 변경하여 N+1 쿼리 문제를 방지했습니다.
  • 구독 서비스 로직 변경: SubscriptionService에서 SubscriptionPlanplanName을 직접 사용하는 대신, 연관된 Plan 엔티티를 통해 plan.getPlanName()을 호출하도록 수정되었습니다.
  • 템플릿 그룹 검색 로직 통합: TemplateGroupRepository에서 중복된 searchWithoutKeyword 메서드를 제거하고, TemplateGroupService에서 키워드 유무에 관계없이 단일 search 메서드를 사용하도록 로직을 통합했습니다.
  • 테스트 코드 리팩토링: SubscriptionServiceTest에서 SubscriptionPlanPlan 엔티티의 Mocking 설정을 위한 헬퍼 메서드 setupMockSubscriptionPlan을 도입하여 테스트 코드의 가독성과 유지보수성을 향상시켰습니다.

🧠 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.

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
Copy Markdown
Contributor

@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은 Grafana 대시보드 링크를 업데이트하고, 관련하여 몇 가지 코드 개선을 포함하고 있습니다.

주요 변경 사항은 다음과 같습니다:

  • application-secret.yml에서 Grafana iframe URL을 새로운 public dashboard URL로 변경했습니다. IP 주소 대신 도메인을 사용하고, HTTP 대신 HTTPS를 사용하도록 변경된 점이 좋습니다.
  • SubscriptionPlanRepository에서 N+1 문제를 방지하기 위해 JOIN FETCH를 사용하여 Plan 엔티티를 즉시 로딩하도록 JPQL 쿼리를 개선했습니다.
  • TemplateGroup 조회 로직을 리팩토링하여, searchsearchWithoutKeyword로 나뉘어 있던 두 개의 쿼리 메서드를 하나로 통합하고 TemplateGroupService의 로직을 간소화했습니다.
  • SubscriptionServiceTest에서 중복된 Mock 객체 설정 코드를 setupMockSubscriptionPlan 헬퍼 메서드로 추출하여 테스트 코드의 가독성과 유지보수성을 향상시켰습니다.

전반적으로 코드 품질을 향상시키는 좋은 변경 사항들입니다. 한 가지 가독성 개선을 위한 제안을 리뷰 코멘트로 남겼습니다.

@github-actions
Copy link
Copy Markdown

SonarQube Quality Summary (Community)

Quality Gate PASSED

Branch: feat/UPLUS-125
Compared to: default branch

Issues

  • 🐞 Bugs: 0
  • 🔐 Vulnerabilities: 2
  • 📎 Code Smells: 49

Measures

  • Coverage: 0%
  • Duplication: 0%

🔗 Dashboard: https://sonarqube.swthewhite.store/dashboard?id=api-core&branch=feat/UPLUS-125

Generated automatically by GitHub Actions.

@github-actions github-actions Bot added fix 버그 수정 size/M PR size: M and removed size/S PR size: S labels Jan 26, 2026
@github-actions
Copy link
Copy Markdown

SonarQube Quality Summary (Community)

Quality Gate PASSED

Branch: feat/UPLUS-125
Compared to: default branch

Issues

  • 🐞 Bugs: 0
  • 🔐 Vulnerabilities: 2
  • 📎 Code Smells: 49

Measures

  • Coverage: 0%
  • Duplication: 0%

🔗 Dashboard: https://sonarqube.swthewhite.store/dashboard?id=api-core&branch=feat/UPLUS-125

Generated automatically by GitHub Actions.

Copy link
Copy Markdown
Member

@k0081915 k0081915 left a comment

Choose a reason for hiding this comment

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

고생하셨습니다

@arlen02-01 arlen02-01 merged commit 54e7bab into develop Jan 26, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix 버그 수정 size/M PR size: M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants