Fix : out of bound 해결#123
Merged
Hidden character warning
The head ref may contain hidden characters: "fix/\ud034\uc988-\uc720\uc9c0\ubcf4\uc218"
Merged
Conversation
Closed
|
Caution Review failedThe pull request is closed. Walkthrough
Changes
Sequence Diagram(s)sequenceDiagram
participant C as Client
participant R as RealQuizService
participant Q as UserQuizRepository
participant A as DailyQuizAllocator
C->>R: getTodayQuiz(user)
R->>Q: findAllTodayUserQuizByUser(user)
Q-->>R: List<UserQuiz>
alt 첫 요소 Optional 조회 (변경)
R->>R: list.stream().findFirst().orElse(null)
end
opt 존재함
R-->>C: existing UserQuiz
end
alt 없음 (null)
R->>A: allocateNewDailyQuiz(user)
A-->>R: new UserQuiz
R-->>C: new UserQuiz
end
Note over R: 빈 리스트 시 예외 대신 null 처리로 분기
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested labels
Poem
📜 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 (2)
✨ 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 (
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix : UserQuizRepository 특정 메소드 out of bound 해결
Summary by CodeRabbit