[Fix] 홈 월간 유형 라벨이 실제 코드와 어긋나던 문제 수정 - #115
Conversation
홈의 USER_TYPE_LABEL이 리포트가 저장하는 코드 체계와 달라, 유형이 있는 사용자에게 전혀 다른 유형명이 표시되고 있었다. 기준: prisma/schema.prisma의 user_type 주석 및 report.service의 월간 유형 산출 R 규칙형 / C 변비경향형 / W 묽은변경향형 / L 생활영향형 / I 불규칙형 / N 유형 분석 중 - W가 매핑에 없어 묽은변경향형이 라벨 없이 null로 내려갔다. - L(생활영향형)을 '묽은변경향형', I(불규칙형)을 '생활영향형'으로 잘못 표시했다. - 존재하지 않는 코드 U를 '불규칙형'으로 두고 있었다. - N의 라벨도 '기록부족형' → '유형 분석 중'으로 통일했다. 6개 코드 전부와 계약 밖 코드(null 폴백) 테스트를 추가해 재발을 막는다. home-response.dto의 Swagger 설명도 동일하게 정정. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
Warning Review limit reached
Next review available in: 16 minutes You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
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 |
📑 이슈 번호
✨️ 작업 내용
홈의
USER_TYPE_LABEL이 리포트가 저장하는 코드 체계와 달라, 유형이 산출된사용자에게 전혀 다른 유형명이 표시되고 있었습니다.
기준(prisma
user_type주석 + report.service 월간 유형 산출):R 규칙형 / C 변비경향형 / W 묽은변경향형 / L 생활영향형 / I 불규칙형 / N 유형 분석 중수정
USER_TYPE_LABEL을 실제 코드 체계에 맞게 정정home-response.dto의 Swagger 설명도 동일하게 정정💭 코멘트
리포트가
userType: 'L'(생활영향형)을 저장하면 홈은 "묽은변경향형"으로 표시하던상태였습니다. 유형이 산출된 사용자에게만 나타나서 늦게 발견됐습니다.
같은 코드 표가 홈·리포트에 중복돼 있어 재발 여지가 있습니다. 공용 상수로 추출하는
리팩터는 리포트 쪽 구조(유형별 title/description 생성)까지 건드려야 해서 이번
범위에서는 제외했습니다.
📸 구현 결과