Skip to content

v2025.11.11 (ver.2)#102

Merged
withJihyuk merged 2 commits intomainfrom
develop
Nov 11, 2025
Merged

v2025.11.11 (ver.2)#102
withJihyuk merged 2 commits intomainfrom
develop

Conversation

@withJihyuk
Copy link
Copy Markdown
Member

💡 JIRA TICKET

📃 작업내용

  • develop -> main

✅ PR 체크리스트

  • 이 작업으로 인해 변경이 필요한 문서가 변경되었나요? (e.g. .env, 노션, README)
  • 이 작업을 하고나서 공유해야할 팀원들에게 공유되었나요? (e.g. "API 개발 완료됐어요", "환경값 추가되었어요")
  • 작업한 코드가 정상적으로 동작하나요?
  • Merge 대상 브랜치가 올바른가요?
  • PR과 관련 없는 작업이 있지는 않나요?

@withJihyuk withJihyuk self-assigned this Nov 11, 2025
@withJihyuk withJihyuk merged commit 24947af into main Nov 11, 2025
1 check passed
@gemini-code-assist
Copy link
Copy Markdown

Summary of Changes

Hello @withJihyuk, 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은 주로 카카오 알림 서비스 로직의 유지보수 및 개선에 중점을 둡니다. 알림 변수 내에서 URL 접두사를 처리하는 방식을 최적화하고, 공간 등록 메시지에 사용되는 특정 템플릿 ID를 업데이트하여 알림 시스템의 안정성과 정확성을 향상시키는 것을 목표로 합니다.

Highlights

  • URL 접두사 제거 로직 개선: KakaoNotificationService.kt 파일에서 URL 링크 처리 시 link.replace("https://", "")link.removePrefix("https://")로 변경하여 보다 명확하고 효율적인 접두사 제거 로직을 적용했습니다.
  • 메시지 템플릿 ID 업데이트: MessageTemplate.kt 파일에서 SPACE_REGISTRATION 열거형의 templateId를 새로운 값으로 업데이트했습니다. 이는 특정 알림 템플릿의 변경 또는 갱신을 반영합니다.
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

@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은 카카오 알림 서비스의 링크 처리 로직을 개선하고 메시지 템플릿 ID를 업데이트하는 내용을 담고 있습니다. 전반적으로 좋은 변경이지만, 코드의 유지보수성과 견고성을 높이기 위한 몇 가지 제안 사항이 있습니다. 링크 처리 시 http:// 프로토콜도 함께 고려하도록 수정하고, 하드코딩된 템플릿 ID를 설정 파일로 분리하여 관리하는 방안을 검토해 보시는 것을 추천합니다.

kakaoOption.variables?.let { vars ->
vars["#{링크}"]?.let { link ->
vars["#{링크}"] = link.replace("https://", "")
vars["#{링크}"] = link.removePrefix("https://")
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

removePrefix를 사용하여 https://를 제거하는 것은 좋은 개선입니다. 하지만 현재 코드는 http://로 시작하는 링크는 처리하지 못합니다. 만약 http:// 링크가 전달될 경우 프로토콜이 제거되지 않은 채로 남게 될 수 있습니다. http://도 함께 처리하여 코드를 더 견고하게 만드는 것을 고려해 보세요.

Suggested change
vars["#{링크}"] = link.removePrefix("https://")
vars["#{링크}"] = link.removePrefix("https://").removePrefix("http://")


SPACE_REGISTRATION(
templateId = "KA01TP250717034426750fYNSMbPdfdc",
templateId = "KA01TP251110113312244j0OsqUaLY4z",
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

템플릿 ID와 같은 값은 소스 코드에 하드코딩하기보다 외부 설정 파일(예: application.yml)에서 관리하는 것이 좋습니다. 이렇게 하면 코드를 다시 컴파일하고 배포하지 않고도 값을 변경할 수 있으며, 개발, 스테이징, 프로덕션 등 여러 환경에서 다른 값을 쉽게 사용할 수 있어 유지보수성이 향상됩니다. KakaoNotificationService에서 다른 설정 값들(예: sms.apiKey)이 이미 외부에서 주입받고 있는 것처럼, 템플릿 ID도 동일한 방식으로 관리하는 것을 고려해 보세요.

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