-
Notifications
You must be signed in to change notification settings - Fork 0
[FEATURE] pendingBooking(임시예약) 조회 API 구현 #96
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
Conversation
chanwonlee
left a comment
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.
조회 API 코드 확인했습니다!
각 계층별 분리도 깔끔하고 주석도 잘 작성해 주셔서 코드 흐름 파악하기 정말 편했습니다!
테스트 코드도 TestHelper 사용해서 꼼꼼히 작성해 주셨네요!
지민님이 말씀하신 것처럼 QueryDSL을 사용하지 않고 조회 시 3개의 쿼리로 했을 때 성능 변화가 어떻게 되는지 궁금하네요! 고생하셨습니다 👍👍
Ogu1208
left a comment
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.
조회 로직 확인했습니다!
코드가 점점 깔끔해져서 기분이 좋네요 ㅎㅎ
쿼리 분리도 한번 테스트해서 확인해보면 좋을 것 같습니다! 이쪽도 조회 로직이 복잡한데 꼼꼼하게 해주신 것 같아요!
고생 많으셨습니다~👍👍
src/test/java/com/sudo/raillo/booking/application/PendingBookingServiceTest.java
Outdated
Show resolved
Hide resolved
src/test/java/com/sudo/raillo/booking/application/PendingBookingServiceTest.java
Show resolved
Hide resolved
src/main/java/com/sudo/raillo/booking/application/mapper/PendingBookingMapper.java
Show resolved
Hide resolved
src/main/java/com/sudo/raillo/booking/application/dto/response/PendingBookingDetail.java
Show resolved
Hide resolved
ac79a8e to
d342a5b
Compare
관련 Issue (필수)
주요 변경 사항 (필수)
-> Cart에 있는 검증 로직은 Cart 관련 로직 제거 pr에서 삭제 예정
리뷰어 참고 사항
구현하면서 기존 booking(확정 예약) 로직과 비슷하게 가져가려고 QueryDSL을 처음엔 사용했었는데,
레디스에 있는 PendingBooking은 해당 객체가 들고있는 필드들이 모두 id 값이며, 객체를 들고있는게 아니라 기존 예약 조회 코드 보다 dto 및 projection이 아주 많이 나오기도 하고 코드 자체가 더 복잡, 지저분해지는 느낌이 있어서
이번엔 QueryDSL을 사용하지 않고 조회 시 3개의 쿼리만 나갈 수 있도록 구현하였습니다
추가 정보
없음
PR 작성 체크리스트 (필수)