[DABOM-503] 정책 수정 시 {"limitBytes":null}(데이터 무제한) 허용이 안되는 현상 수정 - #129
Conversation
Summary of ChangesHello, 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! 이 Pull Request는 월간 데이터 사용량 제한 정책을 수정할 때 {"limitBytes": null} 값이 무제한을 의미하도록 시스템이 인식하지 못하던 문제를 해결합니다. 이제 사용자는 데이터 무제한 정책을 설정할 수 있으며, 시스템은 이러한 정책 변경에 따라 사용자의 할당량 초과 차단 상태를 정확하게 관리하고, 관련 알림 메시지도 올바르게 전달합니다. 이는 정책 관리의 유연성을 높이고 사용자 경험을 개선합니다. 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. 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. Footnotes
|
There was a problem hiding this comment.
Code Review
이번 PR은 정책 수정 시 limitBytes를 null로 설정하여 데이터 사용량을 '무제한'으로 변경하는 기능을 구현한 것으로 보입니다. 전반적으로 null 값을 올바르게 처리하여 의도한 대로 동작하도록 수정한 점이 좋습니다. PolicyConstraintValueNormalizer에서 Map.of 대신 LinkedHashMap을 사용하여 null 값을 직렬화하고, 서비스 로직에서 null 값을 '무제한'으로 해석하여 알림 메시지까지 적절히 처리한 점을 확인했습니다.
코드 품질 향상을 위해 두 가지 제안 사항을 남겼습니다. 하나는 CustomerQuota 엔티티에서 null 안정성을 높이기 위한 제안이며, 다른 하나는 서비스 클래스에서 매직넘버를 상수로 추출하여 스타일 가이드를 준수하고 가독성을 높이는 것에 대한 제안입니다. 리뷰 코멘트를 확인해주세요.
SonarQube Quality Summary (Community)✅ Quality Gate PASSED Branch: Issues
Measures
🔗 Dashboard: https://sonarqube.swthewhite.store/dashboard?id=dabom-api-core&branch=fix/DABOM-503 Generated automatically by GitHub Actions. |
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
SonarQube Quality Summary (Community)✅ Quality Gate PASSED Branch: Issues
Measures
🔗 Dashboard: https://sonarqube.swthewhite.store/dashboard?id=dabom-api-core&branch=fix/DABOM-503 Generated automatically by GitHub Actions. |
SonarQube Quality Summary (Community)✅ Quality Gate PASSED Branch: Issues
Measures
🔗 Dashboard: https://sonarqube.swthewhite.store/dashboard?id=dabom-api-core&branch=fix/DABOM-503 Generated automatically by GitHub Actions. |
🍀 이슈 & 티켓 넘버
🎯 목적
정책 수정 시 {"limitBytes":null}(데이터 무제한) 허용이 안되어 데이터 무제한으로 변경이 안되던 현상을 수정하기 위함
📝 변경 사항
{"limitBytes": null}값을 무제한으로 처리하도록 수정limitBytes가null이어도 예외 없이 quota 변경이 가능하도록 서비스 로직 수정CustomerQuota갱신 로직 추가📂 변경 범위
🖥️ 주요 코드 설명
💬 리뷰어에게
📋 체크리스트
기본
./gradlew build가 정상적으로 통과하는가?./gradlew spotlessApply checkstyleMain)코드 품질
Controller → Service → Repository → Entity)@Transactional은 Service에만 선언했는가?테스트
📌 참고 사항