-
Notifications
You must be signed in to change notification settings - Fork 1
Feature/63 봉사자 조회, 상세 조회, 검증 #95
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
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.
빌드에 실패했습니다.
leebs0521
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.
작업량 상당하네요.. 고생 진짜 많으셨어요ㅠㅠ
|
|
||
| return new EncodedToken(accessToken); | ||
| throw new JwtException(JwtErrorType.MISSING_TOKEN); | ||
| } |
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.
감사합니다 ㅎㅎ
| } | ||
| } | ||
| throw new JwtException(UNKNOWN_ERROR); | ||
| } |
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.
네, 컨트롤러 테스트 만들면서 겸사겸사 수정해봤습니다~
| } | ||
|
|
||
| throw new BadRequestException(UNAUTHORIZED_VOLUNTEER_DETAIL); | ||
| } |
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.
감사합니다!
| private final VolunteerRepository volunteerRepository; | ||
| private final VolunteerDetailRepository volunteerDetailRepository; | ||
| private final VolunteerDetailAccessValidatorImpl volunteerDetailAccessValidatorImpl; | ||
|
|
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.
VolunteerDetailAccessValidatorImpl 인터페이스를 의존하도록 바꾸면 좋을 것 같습니다.
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.
아니 이런 실수를... 감사합니다 !
ayoung-dev
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.
전체적으로 중복되는 부분을 처리를 잘 하셔서 코드가 깔끔하네요! 배워갑니다
정말 고생하셨어요!!
cicd(jacoco): controller 패키지를 테스트 커버리지에서 제외
- 나는 컨트롤리 테스트가 밉다.
너무 슬픈데요..
| private BooleanExpression isNotDeleted() { | ||
| return volunteerDetail.deleted.isFalse(); | ||
| } |
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.
감사합니다!
| import com.somemore.global.exception.BadRequestException; | ||
| import com.somemore.recruitboard.usecase.query.RecruitBoardQueryUseCase; | ||
| import com.somemore.volunteerApply.usecase.VolunteerApplyQueryUseCase; | ||
| import com.somemore.volunteerapply.usecase.VolunteerApplyQueryUseCase; |
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.
아하 소나가 짚어주기도 했고, 패키지는 소문자로 이뤄져야하는데 제가 실수 했습니다
| String nickname = volunteerRepository.findNicknameById(id); | ||
|
|
||
| if (nickname == null || nickname.isBlank()) { | ||
| throw new BadRequestException(NOT_EXISTS_VOLUNTEER); | ||
| } | ||
|
|
||
| return nickname; |
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.
null 처리 해주셔서 감사합니다..ㅎㅎ
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.
특별히 해드렸습니다 ~
| .where(isNotDeleted().and(idEq(id))) | ||
| .fetchOne(); | ||
| .selectFrom(recruitBoard) | ||
| .where(isNotDeleted().and(idEq(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.
idEq가 앞으로 오는게 더 효율적일것 같은데 어떻게 생각하시나요
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.
맞습니다. 이 부분 범수님 코드를 자동 정렬만 한 것 같습니다.
| private BooleanExpression isNotDeleted() { | ||
| return volunteer.deleted.isFalse(); | ||
| } | ||
| } |
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.
넵! 감사합니다
| private final VolunteerJpaRepository volunteerJpaRepository; | ||
| private final JPAQueryFactory queryFactory; | ||
|
|
||
| private static final QVolunteer volunteer = QVolunteer.volunteer; |
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.
이렇게 밖으로 빼주는걸 왜 생각을 못햇을까요 저도 해보겠습니다
| } | ||
| } | ||
|
|
||
| // TODO 상태 업데이트 메서드들을 만들고 빌더에서 status를 변경 불가하도록 No newline at end of file |
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.
이것도 수정해두겠습니다
- Volunteer, VolunteerDetail 데이터 매핑. - VolunteerDetail 포함/미포함 두 가지 방식 지원.
- beforeEach 를 transactional로 변경
- 나는 컨트롤러 테스트가 밉다.
a00e403 to
bef0ddb
Compare
|



resolved :
📌 과제 설명
봉사자 조회 및 검증 기능을 구현했습니다.
기관, 봉사자, 봉사 모집, 봉사 신청의 상호작용으로 검증을 구현했으며, 이를 위한 여러 도메인의 조회 로직을 추가했습니다.
👩💻 요구 사항과 구현 내용
봉사자 프로필 조회
추가 기능
BadRequestException오버로딩:ExceptionMessage타입을 인자로 받을 수 있도록 변경✅ PR 포인트 & 궁금한 점
VolunteerDetailAccessValidator에 대한 가감없는 리뷰를 부탁드립니다.