fix: 릴리즈 리뷰 반영 (StoreImage soft-delete·ID 빈값/0n 방어·discountRate clamp)#162
Conversation
…amp) - StoreImage를 SOFT_DELETE_MODELS에 등록해 직접 조회 시 deleted_at 자동 필터 적용 (Codex P2) - storeProducts/storeReviews input의 ID(storeId·categoryId·cursor)에 @isnotempty 추가 (빈 문자열 차단) - discountRate를 0~100으로 clamp (음수 salePrice 방어) - accountId 0n falsy 분기를 !== undefined로 (storeReviews·storeDetail — account id 0의 좋아요/찜 누락 방지) - product-storefront service spec: 비활성/삭제 매장 케이스 분리 + soft-delete 검증 추가 CodeRabbit Functional + Codex P2 반영. CodeRabbit Major(spec을 mock으로 전환)는 testcontainers realDB 통합 컨벤션 유지로 미반영.
|
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 |
🧹 knip — dead-code 리포트전체 리포트
|
🩺 NestJS Doctor — 89/100 (Good)진단 259건 (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 success1403 tests passing in 168 suites. Report generated by 🧪jest coverage report action from 41c1df9 |
Summary
릴리즈 PR #161 리뷰에서 나온 Codex P2 + CodeRabbit Functional 지적을 반영한다. store-detail 조회 API의 soft-delete 등록·입력 방어를 보강한다.
Scope
SOFT_DELETE_MODELS에 등록 → 직접 조회 시deleted_at자동 필터 적용 (Codex P2)storeProducts/storeReviewsinput의 ID(storeId·categoryId·cursor)에@IsNotEmpty추가 — 빈 문자열 차단discountRate를 0~100으로 clamp — 음수salePrice등 비정상 데이터에도 공개 계약 보장accountId0nfalsy 분기를!== undefined로 (storeReviews·storeDetail— account id 0의 좋아요/찜 조회 누락 방지)진행 상황
Impact
Test plan
yarn validate통과(168 suites / 1403 tests) — 음수 clamp·soft-delete 매장 케이스 테스트 추가