Conversation
(cherry picked from commit cfd17d3)
Feat/name change
Contributor
|
Caution Review failedThe pull request is closed. 📝 WalkthroughWalkthrough사용자 이름 업데이트 기능을 추가하고, 닉네임 중복 검사 로직을 단순화하며, JWT 쿠키 도메인 설정 방식을 개선했습니다. 새로운 REST 엔드포인트와 해당 서비스 계층 로직이 도입되었습니다. Changes
Sequence DiagramsequenceDiagram
participant Client
participant UserController
participant UserService
participant UserRepository
participant UserEntity
participant Database
Client->>UserController: PUT /users/name
UserController->>UserService: updateUserName(UserNameUpdateRequestDto)
UserService->>UserService: 현재 사용자 조회
UserService->>UserService: 이름 유효성 검증<br/>(공백 제거, 한글/영문, 최대 10자)
alt 이름 변경 필요
UserService->>UserEntity: updateName(newName)
UserEntity->>UserEntity: this.name = newName
UserService->>Database: save(user)
Database-->>UserService: 저장 완료
UserService-->>UserController: 성공
else 이름 변경 없음
UserService-->>UserController: 스킵
end
UserController-->>Client: 200 SingleResponse
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes 여러 계층에 걸쳐 새로운 기능이 도입되었으며, 닉네임 중복 검사 로직이 변경되었습니다. 변경사항들이 일관된 패턴을 따르지만, 각 파일마다 서로 다른 목적의 수정이 필요하여 중간 수준의 검토 노력이 요구됩니다. Possibly related PRs
Poem
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (7)
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. Comment |
Merged
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.
#️⃣ 연관된 이슈
#285
📝 작업 내용
user name update
Summary by CodeRabbit
릴리스 노트
새로운 기능
개선사항