[SCRUM-239] 내 정보 수정 API 구현 (#99)#102
Merged
moonxxpower merged 9 commits intodevelopfrom Aug 14, 2025
Hidden character warning
The head ref may contain hidden characters: "SCRUM-239-\ub0b4-\uc815\ubcf4-\uc218\uc815-API-\uad6c\ud604"
Merged
Conversation
5차 스프린트 중간 배포
닉네임 중복 조회 API를 구현했습니다. 중복이지 않으면 true, 중복이면 false를 반환하고, 유효성 검증도 함께 수행합니다.
내 정보 수정 API를 구현했습니다. 현재는 닉네임만 수정 가능하며, 닉네임 수정 시 유효성 검증 및 중복 확인을 수행합니다.
내 정보 수정 API와 닉네임 중복 여부 조회 API에서 공통되게 사용되는 닉네임 유효성 검증 메서드에 대해 테스트 코드를 구현하고 테스트를 진행했습니다. (실패 3개)
닉네임 중복 여부 조회 API의 서비스 메서드들에 대하여 테스트 코드를 구현하고 테스트를 진행했습니다. (성공 2개, 실패 1개)
내 정보 수정 API의 서비스 메서드들에 대하여 테스트 코드를 구현하고 테스트를 진행했습니다. (성공 1개, 실패 2개)
ssggii
approved these changes
Aug 14, 2025
Contributor
ssggii
left a comment
There was a problem hiding this comment.
고생하셨습니다! 리뷰 코멘트 확인 부탁드려요 :)
src/main/java/com/server/running_handai/domain/member/controller/MemberController.java
Show resolved
Hide resolved
src/main/java/com/server/running_handai/domain/member/service/MemberService.java
Outdated
Show resolved
Hide resolved
src/main/java/com/server/running_handai/domain/member/controller/MemberController.java
Outdated
Show resolved
Hide resolved
src/main/java/com/server/running_handai/domain/member/dto/MemberUpdateRequestDto.java
Outdated
Show resolved
Hide resolved
src/test/java/com/server/running_handai/domain/member/service/MemberServiceTest.java
Show resolved
Hide resolved
닉네임 최소, 최대 길이를 상수 처리함으로써 숫자에 명확한 의미를 부여했습니다.
닉네임 중복 여부 조회 API와 내 정보 수정 API에서 @validated, @Valid를 각각 사용하여 닉네임을 공백이나 Null로 요청하는 경우 @notblank를 사용해 검증하도록 수정했습니다. 추가적으로 @validated 관련 Exception을 처리하기 위해 GlobalExceptionHandler에 ConstraintViolationException를 추가했습니다.
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.
✏️ 연관 이슈
#99
⛳ 작업 내용
/members/me)/members/nickname?value={nickname})💬리뷰 요구사항
총 9개(성공 3개, 실패 6개)의 시나리오에 대한 테스트 코드를 작성했습니다. 제가 놓친 부분이 있다면 말씀해주세요!
📍 참고사항
내 정보 조회 API의 경우, 현재는 닉네임만 수정 가능하지만, 추후 확장성을 위해
updateMemberInfo로 작성했습니다.추가적으로 닉네임 검증 조건은 아래와 같습니다.