-
Notifications
You must be signed in to change notification settings - Fork 0
[CMAT-60] fix: 스크랩한 컨텐츠 조회에서 현재 직무와 같은 컨텐츠만 조회되도록 수정 #41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Walkthrough이번 PR은 Changes
Sequence Diagram(s)sequenceDiagram
participant Client as 클라이언트
participant Service as ContentScrapService
participant Repository as ContentScrapRepository
participant DB as 데이터베이스
Client->>Service: getScrapContents(member, page, size) 호출
Service->>Service: jobId 검증 (null인 경우 예외 발생)
Service->>Repository: findByMemberAndJobId(member, jobId, pageable) 호출
Repository->>DB: JPQL 쿼리 실행
DB-->>Repository: Page<ContentScrap> 결과 반환
Repository-->>Service: 결과 전달
Service-->>Client: 변환된 ContentScrapResponseDTO 반환
Possibly related PRs
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
🔇 Additional comments (3)
✨ Finishing Touches
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
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 (
|
jpark0506
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM~
| if (jobId == null) { | ||
| throw new GeneralException(CommonErrorCode.NOT_FOUND_BY_JOB_ID); | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
예외 처리 좋습니다!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Job에 대해 null 체크를 하는건 어떨까요?
Job이 있으면 jobId가 있는게 보장되서, Job이 있는데 jobId가 없는 경우는 없을거라
.getId()에서 널포인트 예외가 터질 수 있을 것 같아여
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Job에 대해 null 체크를 하는건 어떨까요? Job이 있으면 jobId가 있는게 보장되서, Job이 있는데 jobId가 없는 경우는 없을거라 .getId()에서 널포인트 예외가 터질 수 있을 것 같아여
오 넵 이거 한번 수정해둘게요!!
momuzzi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM~ 의견 하나 남겨뒀습니다ㅏ
| if (jobId == null) { | ||
| throw new GeneralException(CommonErrorCode.NOT_FOUND_BY_JOB_ID); | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Job에 대해 null 체크를 하는건 어떨까요?
Job이 있으면 jobId가 있는게 보장되서, Job이 있는데 jobId가 없는 경우는 없을거라
.getId()에서 널포인트 예외가 터질 수 있을 것 같아여
#️⃣ 요약 설명
📝 작업 내용
// 핵심 코드를 붙여넣기 해주세요코드에 대한 간단한 설명 부탁드립니다.
동작 확인
💬 리뷰 요구사항(선택)
Summary by CodeRabbit