Skip to content

[REFACTOR/#111] 금융 mbti 검사와 추천 생성 로직 분리#112

Merged
seamooll merged 1 commit intomainfrom
ref/#111-mbti-recommendation-separation
Feb 17, 2026
Merged

[REFACTOR/#111] 금융 mbti 검사와 추천 생성 로직 분리#112
seamooll merged 1 commit intomainfrom
ref/#111-mbti-recommendation-separation

Conversation

@seamooll
Copy link
Contributor

@seamooll seamooll commented Feb 17, 2026

🔗 Related Issue

📝 Summary

  • MBTI 검사 로직에서 Gemini 호출 제거
  • 추천 생성 API에서만 Gemini 호출하도록 구조 변경

🔄 Changes

  • API 변경 (추가/수정)
  • 데이터 및 도메인 변경 (DB, 비즈니스 로직)
  • 설정 또는 인프라 관련 변경
  • 리팩토링

💬 Questions & Review Points

📸 API Test Results (Swagger)

✅ Checklist

  • API 테스트 완료
  • 테스트 결과 사진 첨부
  • 빌드 성공 확인 (./gradlew build)

@seamooll seamooll self-assigned this Feb 17, 2026
@seamooll seamooll added the 도희 도희 label Feb 17, 2026
@seamooll seamooll linked an issue Feb 17, 2026 that may be closed by this pull request
2 tasks
@seamooll seamooll added the 🔧 enhancement 기존 기능 개선 label Feb 17, 2026
@gemini-code-assist
Copy link

Summary of Changes

Hello @seamooll, 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은 금융 MBTI 검사 로직과 추천 생성 로직을 명확하게 분리하는 리팩토링을 수행합니다. 기존에는 MBTI 검사 완료 시 Gemini API를 통해 추천이 자동으로 생성되었으나, 이제는 MBTI 검사 로직에서 Gemini 호출을 제거하고, 추천 생성은 별도의 API를 통해서만 이루어지도록 변경되었습니다. 이는 각 기능의 독립성을 높이고, 서비스 흐름을 더욱 유연하게 만듭니다.

Highlights

  • MBTI 검사 로직 개선: 금융 MBTI 검사 로직에서 Gemini API 호출을 제거하여, 검사 완료 시 추천이 자동으로 생성되지 않도록 변경되었습니다.
  • 추천 생성 로직 분리: Gemini API 호출을 추천 생성 전용 API에서만 담당하도록 구조를 변경하여, MBTI 검사와 추천 생성 간의 관심사를 분리했습니다.

🧠 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/org/umc/valuedi/domain/mbti/service/FinanceMbtiService.java
    • @Slf4j 어노테이션 및 RecommendationService 의존성이 제거되었습니다.
    • submitTest 메서드에서 Gemini API를 호출하여 추천을 생성하던 로직이 제거되었습니다.
  • src/main/java/org/umc/valuedi/domain/savings/controller/RecommendationControllerDocs.java
    • generateRecommendation API의 summarydescription이 업데이트되어, 추천 생성 API가 더 이상 MBTI 검사 완료 시 자동으로 호출되지 않으며, 사용자가 직접 호출하여 맞춤 추천을 받을 수 있음을 명시했습니다.
Activity
  • 이 PR에는 아직 사람의 활동(댓글, 리뷰 등)이 없습니다.
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은 금융 MBTI 검사 로직과 추천 생성 로직을 성공적으로 분리하여 코드의 모듈성과 유지보수성을 향상시켰습니다. MBTI 검사 API에서 외부 서비스(Gemini) 호출을 제거함으로써 API 응답 시간을 단축하고 안정성을 높인 점이 인상적입니다. 또한, 변경된 API 흐름에 맞게 Swagger 문서도 명확하게 업데이트되었습니다. 전반적으로 훌륭한 리팩토링입니다.

@seamooll seamooll merged commit f458de1 into main Feb 17, 2026
1 check passed
@seamooll seamooll deleted the ref/#111-mbti-recommendation-separation branch February 17, 2026 10:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

도희 도희 🔧 enhancement 기존 기능 개선

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[REFACTOR] MBTI 검사와 추천 생성 로직 분리

1 participant

Comments