패널 및 일기 수정#133
Conversation
|
Caution Review failedThe pull request is closed. Walkthrough홈 패널/미션/피드 전반에 걸쳐 DTO와 서비스 로직이 확장 및 수정됨. 홈 패널 DTO에 nextStage 필드가 추가되고, HomeService는 exists 기반 체크와 WishTreeStage를 사용. 피드 서비스는 차단 사용자 필터를 비활성화. 신규 서비스/DTO 추가와 리포지토리 메서드들이 도입됨. ERD Mermaid 파일이 추가됨. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor U as User
participant HS as HomeService
participant DR as DiaryRepository
participant UQR as UserQuizRepository
participant DQAR as DailyQuestionAnswerRepository
participant WTS as WishTreeStage
U->>HS: getPanelData(user)
HS->>HS: today start/end 계산 (LocalDate)
HS->>DR: existsByUserAndCreatedAtBetween(user, start, end)
DR-->>HS: boolean isDiaryCompleted
HS->>UQR: existsByUserAndIsCompletedIsTrueAndCreatedAtBetween(...)
UQR-->>HS: boolean isQuizCompleted
HS->>DQAR: existsByUserAndAnsweredDate(user, today)
DQAR-->>HS: boolean isCheckingCompleted
HS->>WTS: current.getNextStage()
WTS-->>HS: nextStage or null
HS-->>U: PanelResponseDTO (missions, wishTree with nextStage)
note over HS: 신규/변경된 단계 명칭 및 진행률 포함
sequenceDiagram
autonumber
actor U as User
participant FS as FeedService
participant DR as DiaryRepository
participant APR as AvatarPostRepository
U->>FS: getFeed(user, pageable)
FS->>FS: blockedUserIds = empty list
alt not following
FS->>DR: findByIsPublicIsTrue(pageable)
FS->>APR: findAllBy(pageable)
else following
FS->>DR: findByUserInAndUser_IdNotIn(..., blocked=[])
FS->>APR: findByUserInAndUser_IdNotIn(..., blocked=[])
end
FS-->>U: FeedResponse (without block filtering)
note over FS: 차단 필터링 비활성화
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
Tip 🔌 Remote MCP (Model Context Protocol) integration is now available!Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats. 📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 💡 Knowledge Base configuration:
You can enable these sources in your CodeRabbit configuration. 📒 Files selected for processing (14)
✨ Finishing Touches
🧪 Generate unit tests
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
CodeRabbit Configuration File (
|
|
🚨 PR 본문이 비어있습니다! 아래 템플릿을 복사하여 PR 내용을 작성해주세요. 📝 개요
💻 작업 내용
✅ PR 체크리스트
🔗 관련 이슈
스크린샷 (선택)
|
Summary by CodeRabbit