Skip to content
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

Merged
merged 3 commits into from
Jul 19, 2024
Merged

Conversation

eunjungL
Copy link

✅ 작업 내용

  • 여행 계획 작성 API request에서 order 제거
  • bean validation 오류 해결

📸 스크린샷

🙈 참고 사항

@eunjungL eunjungL added the BE label Jul 19, 2024
@eunjungL eunjungL added this to the sprint 2 milestone Jul 19, 2024
@eunjungL eunjungL requested review from Libienz and slimsha2dy July 19, 2024 07:28
@eunjungL eunjungL self-assigned this Jul 19, 2024
@eunjungL eunjungL changed the base branch from main to develop/be July 19, 2024 07:28
Copy link

@hangillee hangillee left a 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());

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) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤔 순서를 외부에서 주입해준다.. 더 나은 방법이 있지 않을까요..
개발자가 오용하기 쉬운 코드인 것 같아요!

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

제가 착각했네요! Approve 하겠습니다!

Copy link

@Libienz Libienz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏻 👍🏻

Copy link

@slimsha2dy slimsha2dy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!! 수고하셨습니다 랜드로버!

@eunjungL eunjungL linked an issue Jul 19, 2024 that may be closed by this pull request
1 task
Copy link

Unit Test Results

0 tests   0 ✔️  0s ⏱️
0 suites  0 💤
0 files    0

Results for commit c3f48e0.

@eunjungL eunjungL merged commit 6b6bbcb into develop/be Jul 19, 2024
3 checks passed
@hangillee hangillee deleted the feature/be/#65 branch July 24, 2024 08:17
eunjungL added a commit that referenced this pull request Jul 30, 2024
* feat: MethodArgumentNotValidException handler 추가

* fix: TravelPlan Request에서 order 제거 후 index 사용으로 변경
hangillee pushed a commit to hangillee/2024-touroot that referenced this pull request Aug 20, 2024
* feat: MethodArgumentNotValidException handler 추가

* fix: TravelPlan Request에서 order 제거 후 index 사용으로 변경
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[Feature] - 여행 계획 코드 리팩토링
4 participants