feat(user): 주문 카드에 hasReviewableItem 노출#79
Conversation
마이페이지 figma 04-order-list 명세 '픽업 완료 상태일 경우 리뷰 작성 버튼 노출'을 백엔드 카드 단위로 노출 가능하도록 hasReviewableItem 필드를 추가한다. 조건: status === PICKED_UP && (active 리뷰 미작성 item이 1건이라도 존재). - SDL MyOrderSummary에 hasReviewableItem: Boolean! 추가 - TS DTO 동기화 - OrderRepository.findReviewableOrderIds 메서드 신규 (단일 IN 쿼리, N+1 회피) - user-order.service에서 list 매핑 시 set 조회 후 hasReviewableItem 계산 - 회귀 테스트 6건 (미작성/active리뷰/soft-delete/CONFIRMED/CANCELED/혼합)
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Coverage report
Test suite run success847 tests passing in 75 suites. Report generated by 🧪jest coverage report action from 0779ac9 |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
orderRepository.findReviewableOrderIds의 빈 배열 early return 분기 커버. codecov patch coverage가 100%가 되도록 보강.
Summary
변경 사항
Breaking 여부
Test plan