Conversation
GraphQL 컨텍스트에서 req.user가 없으면 HTTP 폴백으로 내려갔는데, GraphQL ExecutionContext의 switchToHttp().getRequest()는 resolver root(args[0])를 반환하므로 루트 Query 비로그인 요청이 전부 TypeError(500)로 실패했다. 컨텍스트 타입 분기로 폴백을 차단한다. spec mock도 실제 ExecutionContextHost 동작(getRequest()=args[0])에 맞게 고치고 비로그인 회귀 케이스를 추가한다.
매장 사진후기 화면(FE 요청)을 위해 productReviews와 동일 의미론으로 StoreReviewsInput.photoOnly(기본 false), StoreReviewConnection.photoTotalCount를 추가한다. photoTotalCount는 필터와 무관하게 항상 사진 리뷰 총수. repository는 product 쪽 publicReviewWhere 패턴을 미러링해 활성 미디어 존재(media.some, soft-delete 제외) 기준으로 필터·카운트한다.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (9)
📝 WalkthroughWalkthrough매장 리뷰 조회에 Changes매장 리뷰 사진 필터와 카운트
CurrentUser 컨텍스트 분기 수정
Estimated code review effort: 3 (Moderate) | ~25 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 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)진단 270건 (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 success1467 tests passing in 173 suites. Report generated by 🧪jest coverage report action from fd23698 |
Summary
FE 연동 중 발견된 비로그인 500 버그 수정과 매장 사진후기 필드 추가 릴리즈입니다.
fix:CurrentUser데코레이터가 GraphQL 비로그인 요청에서 HTTP 폴백으로 내려가 TypeError(500)를 내던 버그 수정.OptionalJwtAuthGuard를 쓰는 모든 public query(storeReviews,storeDetail,productReviews,productDetail등)의 비로그인 접근이 정상화됩니다.feat:StoreReviewsInput.photoOnly(기본 false) ·StoreReviewConnection.photoTotalCount추가.productReviews와 동일 의미론(photoTotalCount는 필터와 무관하게 사진 리뷰 총수).Scope
src/global/auth/decorators/— 컨텍스트 타입 분기 + spec mock 정합화/회귀 케이스src/features/store/— SDL·DTO·repository·service·output type (additive 변경)진행 상황
Impact
storeReviews(photoOnly: true)+photoTotalCount).Test plan
yarn validate전체 green (양 PR 각각 1464+ 테스트)Summary by CodeRabbit
새로운 기능
버그 수정
테스트