Conversation
|
Caution Review failedThe pull request is closed. Summary by CodeRabbit릴리스 노트
✏️ Tip: You can customize this high-level summary in your review settings. WalkthroughGitHub 워크플로우 트리거를 develop 브랜치만 포함하도록 축소하고, ResumeBasedQuestionBedrockService에서 구성을 상수로 인라인화하면서 조건부 흐름을 제거하여 항상 Bedrock 흐름을 먼저 시도하도록 변경했습니다. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
✨ Finishing touches
Comment |
Summary of ChangesHello @unifolio0, 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은 Highlights
🧠 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. Ignored Files
Using Gemini Code AssistThe 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
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 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
|
There was a problem hiding this comment.
Code Review
이 PR은 Bedrock Flow ID와 Alias ID를 기존의 @Value를 통한 프로퍼티 주입 방식에서 클래스 내 상수로 하드코딩하는 방식으로 변경했습니다. 이로 인해 설정 유무를 확인하던 로직도 함께 제거되었습니다.
리뷰 결과, 설정 값을 하드코딩하는 것은 여러 환경(개발, 운영 등)에서 유연하게 대처하기 어렵게 만들고 유지보수성을 저해하므로 중대한(critical) 이슈로 판단됩니다. 따라서, 원래대로 외부 설정 파일에서 값을 주입받는 방식으로 되돌리는 것을 권장합니다. 이는 애플리케이션의 유연성과 확장성을 위해 필수적입니다.
| private static final String FLOW_ID = "CKV5A4UEAL"; | ||
| private static final String FLOW_ALIAS_ID = "R9970MAVDH"; |
There was a problem hiding this comment.
베드락 Flow ID와 Alias ID를 상수로 하드코딩하면 각 환경(개발, 프로덕션 등)에 따라 다른 값을 사용하기 어렵습니다. 이로 인해 관련 로직(isBedrockFlowConfigured 등)이 삭제되었는데, 이는 유연성을 해치는 변경입니다.
이 값들은 외부 설정(application.yml)에서 @Value를 통해 주입받도록 하는 것이 좋습니다. 이렇게 하면 코드 변경 없이 환경별로 다른 Flow를 사용하도록 유연하게 설정할 수 있습니다.
이전 구현처럼 @Value를 사용해 flowId와 flowAliasId를 주입받고, 해당 값들이 설정되지 않았을 때 GPT로 fallback하는 로직을 복원하는 것을 강력히 권장합니다. 만약 테스트를 위한 임시 변경이었다면, 이 PR이 병합되기 전에 원래 코드로 복구해야 합니다.
closed #
작업 내용
스크린샷
참고 사항