-
Notifications
You must be signed in to change notification settings - Fork 5
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
[Feature] - 여행 계획 코드 리팩토링 #67
Conversation
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.
고생하셨습니다 클로버!
코멘트 몇 개 달았으니 확인해주세요!
@@ -13,8 +14,24 @@ public class GlobalExceptionHandler { | |||
@ExceptionHandler(BadRequestException.class) | |||
public ResponseEntity<ExceptionResponse> handleBadRequestException(BadRequestException exception) { | |||
log.info("BAD_REQUEST_EXCEPTION :: message = {}", exception.getMessage()); |
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.
저희 Logging 정책에 대해서도 이야기를 나눠봐야겠네요.
로그 메시지 컨벤션도 정해야 할 것 같습니다.
) { | ||
|
||
public TravelPlanPlace toPlanPlace(TravelPlanDay day, Place place) { | ||
public TravelPlanPlace toPlanPlace(int order, TravelPlanDay day, Place place) { |
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.
제가 착각했네요! Approve 하겠습니다!
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.
LGTM!! 수고하셨습니다 랜드로버!
* feat: MethodArgumentNotValidException handler 추가 * fix: TravelPlan Request에서 order 제거 후 index 사용으로 변경
* feat: MethodArgumentNotValidException handler 추가 * fix: TravelPlan Request에서 order 제거 후 index 사용으로 변경
✅ 작업 내용
📸 스크린샷
🙈 참고 사항