Skip to content

Conversation

@Jimin730
Copy link
Contributor

@Jimin730 Jimin730 commented Jan 4, 2026

관련 Issue (필수)

주요 변경 사항 (필수)

  • 임시 예약 조회 로직 구현
  • 임시 예약 조회 테스트 코드 작성
  • PendingBooking 검증 코드 validator로 이동
    -> Cart에 있는 검증 로직은 Cart 관련 로직 제거 pr에서 삭제 예정

리뷰어 참고 사항

구현하면서 기존 booking(확정 예약) 로직과 비슷하게 가져가려고 QueryDSL을 처음엔 사용했었는데,
레디스에 있는 PendingBooking은 해당 객체가 들고있는 필드들이 모두 id 값이며, 객체를 들고있는게 아니라 기존 예약 조회 코드 보다 dto 및 projection이 아주 많이 나오기도 하고 코드 자체가 더 복잡, 지저분해지는 느낌이 있어서
이번엔 QueryDSL을 사용하지 않고 조회 시 3개의 쿼리만 나갈 수 있도록 구현하였습니다

추가 정보

없음

PR 작성 체크리스트 (필수)

  • 제목이 Issue와 동일함을 확인했습니다.
  • 리뷰어를 지정했습니다.
  • 프로젝트를 연결했습니다.

Copy link
Contributor

@chanwonlee chanwonlee left a 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개의 쿼리로 했을 때 성능 변화가 어떻게 되는지 궁금하네요! 고생하셨습니다 👍👍

Copy link
Contributor

@Ogu1208 Ogu1208 left a comment

Choose a reason for hiding this comment

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

조회 로직 확인했습니다!
코드가 점점 깔끔해져서 기분이 좋네요 ㅎㅎ
쿼리 분리도 한번 테스트해서 확인해보면 좋을 것 같습니다! 이쪽도 조회 로직이 복잡한데 꼼꼼하게 해주신 것 같아요!
고생 많으셨습니다~👍👍

@Jimin730 Jimin730 force-pushed the feature/75-get-pending-bookings branch from ac79a8e to d342a5b Compare January 5, 2026 00:48
@Jimin730 Jimin730 merged commit cd4e4a1 into develop Jan 6, 2026
3 checks passed
@Jimin730 Jimin730 deleted the feature/75-get-pending-bookings branch January 6, 2026 03:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] pendingBooking(임시예약) 조회 API 구현

4 participants