fix(Bookmark): 북마크 버그 수정#188
Conversation
|
Warning Rate limit exceeded@Jjiggu has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 22 minutes and 28 seconds before requesting another review. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. 📒 Files selected for processing (2)
WalkthroughBookmarkService에서 기존의 일반적인 예외를 보다 구체적인 예외( Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant BookmarkService
participant UserRepository
participant StoreRepository
participant BookmarkRepository
User->>BookmarkService: createBookmark(userId, storeId)
BookmarkService->>UserRepository: findById(userId)
alt User not found
BookmarkService-->>User: throw UserNotFoundException
end
BookmarkService->>StoreRepository: findById(storeId)
alt Store not found
BookmarkService-->>User: throw StoreNotFoundException
end
BookmarkService->>BookmarkRepository: findByUserAndStore(user, store)
alt Bookmark exists and deleted
BookmarkService->>BookmarkRepository: save(bookmark) (restore)
BookmarkService->>BookmarkRepository: save(bookmark) (return response)
else Bookmark does not exist
BookmarkService->>BookmarkRepository: save(new Bookmark)
end
BookmarkService-->>User: return BookmarkResponse
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Possibly related PRs
Suggested reviewers
✨ 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. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
작업 요약
Issue Link
#185
문제점 및 어려움
해결 방안
Reference
Summary by CodeRabbit
버그 수정
기타 개선