-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat/#25 Log를 저장할 떄 appKey를 검증하도록 수정 #84
Conversation
- existsByToken메서드 추가
- 존재하지 않는 Application Key로 Log를 저장할 수 없다. - 잘못된 형태의 Application Key로 Log를 저장할 수 없다.
Risk Level 2 - /home/runner/work/Team5-Guys/Team5-Guys/logbat/src/main/java/info/logbat/domain/project/repository/AppJpaRepository.java
Risk Level 2 - /home/runner/work/Team5-Guys/Team5-Guys/logbat/src/test/java/info/logbat/domain/log/application/LogServiceTest.java
Risk Level 3 - /home/runner/work/Team5-Guys/Team5-Guys/logbat/src/main/java/info/logbat/domain/log/application/LogService.java
🔍 Powered by Code Review GPT |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍🏻
if (!appJpaRepository.existsByToken(appKeyUuid)) { | ||
throw new IllegalArgumentException("존재하지 않는 Application Key 입니다."); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이 부분도 getAppKey() 부분에 들어가 있으면 어떨까요?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
좋아요~~
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
린트 크아ㅏㅏㅏㄱ
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
잘 봤습니다!
* feat: appKey가 존재하는 지 확인하는 쿼리 메서드 추가 - existsByToken메서드 추가 * feat: Log를 저장할 때 appKey가 존재하는 지 확인하도록 수정 * test: Log를 저장할 때 appKey가 존재하는 지 확인하도록 수정 - 존재하지 않는 Application Key로 Log를 저장할 수 없다. - 잘못된 형태의 Application Key로 Log를 저장할 수 없다. * refactor: Log를 저장할 때 appKey 검증 로직 리팩토링
🚀 작업 내용
📸 이슈 번호
👀 Focus Commits [Optional]
✍ 궁금한 점