fix: 릴리즈 리뷰 반영 (하루 넘는 리드타임을 미래 날짜에도 적용) - #211
Conversation
릴리즈 PR #209 Codex 지적 반영. 리드타임 컷오프를 당일(isToday)에만 적용해, 판매자 설정 리드타임이 하루를 넘으면(최대 7일) 미래 날짜에서 무시됐다 — 7일 리드타임 매장의 내일 슬롯이 예약 가능으로 보이고 createOrder도 통과하는 문제. - buildDaySlots 컷오프를 절대 시각(now + 리드타임) 기준으로 변경 (해당 날짜 자정 대비 경과 분이 미래일에 음수가 되어 자연 반영) - 달력 판정도 동일 규칙: 리드타임에 완전히 덮인 미래일은 CLOSED - 회귀 테스트 1건 추가 (3일 리드: 슬롯 판정·달력·시간 슬롯 3면 검증)
|
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 Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
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 |
🧹 knip — dead-code 리포트전체 리포트
|
🩺 NestJS Doctor — 89/100 (Good)진단 282건 (error 0).
architecture / security 상위 항목
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Coverage report
Test suite run success1603 tests passing in 187 suites. Report generated by 🧪jest coverage report action from 8211999 |
배경
릴리즈 PR #209의 Codex 지적 반영입니다.
리드타임 컷오프를 당일(isToday)에만 적용해서, 판매자 설정 리드타임이 하루를 넘으면(설정 상한 7일) 미래 날짜에서 완전히 무시됐습니다.
예: 7일 리드타임 매장의 내일 슬롯이 달력·슬롯 조회에서 가용으로 보이고
createOrder도 통과했습니다(상품 제작 소요시간이 더 짧은 경우).변경점
buildDaySlots의 컷오프를 절대 시각(now + 리드타임) 기준으로 변경.해당 날짜 자정 대비 현재 경과 분이 미래일에는 음수가 되어 컷오프가 자연스럽게 이월됩니다.
evaluateDay)도 동일 규칙 적용 — 리드타임에 완전히 덮인 미래일은CLOSED.storePickupCalendar/storePickupTimeSlots/isPickupSlotAvailable(주문 생성 재검증) 세 경로가 모두 같은 컷오프를 공유합니다.검증