Skip to content

[UPLUS-154] 사용량 및 청구서 알림 생성 Topic 수정#16

Merged
starboxxxx merged 1 commit into
developfrom
fix/UPLUS-154
Jan 26, 2026
Merged

[UPLUS-154] 사용량 및 청구서 알림 생성 Topic 수정#16
starboxxxx merged 1 commit into
developfrom
fix/UPLUS-154

Conversation

@starboxxxx
Copy link
Copy Markdown
Contributor

🎫 지라 티켓

UPLUS-154


✅ 작업 사항

사용량 및 청구서 알림 생성 Topic 수정


📋 체크리스트

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

⌨ 기타

@starboxxxx starboxxxx requested a review from swthewhite January 26, 2026 13:58
@starboxxxx starboxxxx self-assigned this Jan 26, 2026
@starboxxxx starboxxxx added the fix 버그 수정 label Jan 26, 2026
@gemini-code-assist
Copy link
Copy Markdown

Summary of Changes

Hello @starboxxxx, 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은 사용량 및 청구서 알림 전송에 사용되는 Kafka 토픽 이름을 일관성 있게 변경하여 시스템 내 메시징 토픽 관리를 간소화합니다. 이는 알림 시스템의 명확성과 유지보수성을 향상시키는 데 기여합니다.

Highlights

  • Kafka 토픽 이름 변경: NotificationSendWriter.java 파일에서 사용량 알림을 위한 Kafka 토픽 이름이 "usage-noti"에서 "usage"로 변경되었습니다.
  • Kafka 토픽 이름 변경: InvoiceSendWriter.java 파일에서 청구서 알림을 위한 Kafka 토픽 이름이 "invoice-noti"에서 "invoice"로 변경되었습니다.

🧠 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

@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

안녕하세요. UPLUS-154 티켓 관련 PR을 리뷰했습니다. 사용량 및 청구서 알림 생성에 사용되는 Kafka 토픽 이름을 수정하는 내용이네요. 전반적인 변경 사항은 명확하며, 의도한 대로 잘 수정된 것으로 보입니다. 다만, 코드의 일관성과 유지보수성을 높이기 위한 개선 제안을 한 가지 드립니다. NotificationSendWriter 클래스에서 Kafka 토픽 이름이 하드코딩되어 있어 이를 상수로 추출하는 것을 권장합니다. 자세한 내용은 코드에 남긴 코멘트를 참고해 주세요.


CompletableFuture<SendResult<String, String>> future =
kafkaTemplate.send("usage-noti", key, payload);
kafkaTemplate.send("usage", key, payload);
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

토픽 이름 "usage"가 하드코딩되어 있습니다. InvoiceSendWriter에서 TOPIC 상수를 사용하는 것처럼, 이 클래스에서도 상수로 정의하여 사용하면 코드의 일관성과 유지보수성을 높일 수 있습니다.

다음과 같이 상수를 추가하고 사용하는 것을 권장합니다.

private static final String USAGE_NOTIFICATION_TOPIC = "usage";

// ...

kafkaTemplate.send(USAGE_NOTIFICATION_TOPIC, key, payload);

@github-actions
Copy link
Copy Markdown

ghost commented Jan 26, 2026

SonarQube Quality Summary (Community)

Quality Gate FAILED

Branch: fix/UPLUS-154
Compared to: default branch

Issues

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

Measures

  • Coverage: 0%
  • Duplication: 0%

🔗 Dashboard: https://sonarqube.swthewhite.store/dashboard?id=batch-core&branch=fix/UPLUS-154

Generated automatically by GitHub Actions.

@starboxxxx starboxxxx merged commit c858ee1 into develop Jan 26, 2026
8 of 10 checks passed
@starboxxxx starboxxxx deleted the fix/UPLUS-154 branch January 26, 2026 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant