Repository navigation
fix: 판매자 주문 구독 이벤트에 확정 마감 시각 추가 - #593
Conversation
- 무엇·왜 - 판매자 앱은 포그라운드에서 sellerOrderUpdated의 새 주문 토스트를 먼저 띄우고, 같은 키의 푸시는 중복 제거로 버린다. - D84②(확정 마감 2시간 미만 접수 주문은 새 주문 알림에 마감 시각 표시)를 푸시는 이미 지키지만 구독 이벤트에는 마감이 없어 포그라운드 토스트에 넣을 수 없었다. - 변경점 - SDL: SellerOrderUpdate.confirmDeadlineAt: DateTime 추가(접수 상태가 아니거나 결제 도입 전 주문이면 null). - 매퍼: SellerOrderUpdateRow에 confirm_deadline_at, SellerOrderUpdateEvent에 confirmDeadlineAt(string | null). - 확정·취소 뒤에도 행에 마감이 남으므로 접수(SUBMITTED)일 때만 값을 내고 그 밖은 null(주문 목록·상세의 confirmDeadlineAt과 같은 규칙). - 발행 경로(입금 확인·판매자 상태 변경·취소·자동 전이·픽업 변경)의 행은 include 기반이라 select 변경은 없다. - 테스트 - 매퍼 단위 spec 신설: 필드 매핑, OrderStatus 7값 전수 표, 마감 없는 접수 주문 null, 품목 없음. - real DB: 입금 확인 SUBMITTED 이벤트에 마감 실림, 판매자 확정·자동 취소 이벤트는 행에 마감이 남아도 null, 접수 주문 픽업 변경 이벤트는 다시 잰 마감을 실음. - 기존 이벤트 고정값(관리자 취소·Redis 왕복·구독 서비스)에 필드 반영. - 반증: 상태 조건을 빼면 8건 실패(비접수 6상태 표, 판매자 확정, 자동 취소).
|
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
|
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
🩺 NestJS Doctor — 90/100 (Excellent)진단 539건 (error 14).
architecture / security 상위 항목
|
🧹 knip — dead-code 리포트전체 리포트
|
Coverage report
Test suite run success6656 tests passing in 445 suites. Report generated by 🧪jest coverage report action from 5984cb0 |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
개요
판매자 주문 구독 이벤트
SellerOrderUpdate에 확정 마감 시각confirmDeadlineAt을 더합니다. 판매자 앱이 D84②(확정 마감 2시간 미만 접수 주문은 '새 주문' 알림에 마감 시각 표시)를 포그라운드에서 지키지 못하던 막힘을 푸는 fix입니다.sellerOrderUpdated의 '새 주문' 토스트가 먼저 뜨고, 같은 키의 푸시는 중복 제거로 버려집니다.buildOrderSubmittedPush)는 이미 마감 시각을 넣지만 구독 이벤트에는 마감이 없어 토스트에 넣을 수 없었습니다.변경 사항
SellerOrderUpdate.confirmDeadlineAt: DateTimetoSellerOrderUpdateEventSellerOrderUpdateRow에confirm_deadline_at, 출력SellerOrderUpdateEvent에confirmDeadlineAt: string | null(ISO)을 더했습니다.confirmDeadlineAt과 같은 규칙입니다.include기반이라 스칼라가 이미 들어 있어 조회 변경은 없습니다(tsc로 확인).테스트
order-events-mappers.helper.spec.ts)OrderStatus7값 전수 표: SUBMITTED만 값, 나머지 6값은 nulldto:check·docs:check·arch:check·graphql:codegen통과. 전체 jest는 pre-push에서 돕니다.플랜 대조
confirmDeadlineAt제공