Skip to content
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

닉네임 중복 검사 기능 구현 #55

Merged
merged 9 commits into from
Feb 20, 2024

Conversation

uijin-j
Copy link
Contributor

@uijin-j uijin-j commented Feb 18, 2024

🎫 관련 이슈

Resolves #54

✅ 구현 내용

  • 닉네임 중복 확인 서비스 작성
  • 닉네임 중복 확인 컨트롤러 작성
  • 테스트 코드 작성

💬 코멘트

  • 이메일 중복 검사 기능과 중복되는 부분이 많아서 일단, feat/#50-check-email-duplicate 브랜치에서 새로운 브랜치 따서 작업 했습니다! feat/#50-check-email-duplicatedev에 머지되면 feat/#54-check-nickname-duplicate도 dev로 머지하겠습니당!

@uijin-j uijin-j added 🚀 더 만들어봤슈 기능 구현 🌳 밥 좀 드셔유 천천히 리뷰 ✅ 테스트혀봤슈 빌드&테스트가 필요할 때 태그 labels Feb 18, 2024
@uijin-j uijin-j added this to the 🚀 1차 스프린트 milestone Feb 18, 2024
@uijin-j uijin-j self-assigned this Feb 18, 2024
@uijin-j uijin-j changed the title 이메일 중복 검사 기능 구현 닉네임 중복 검사 기능 구현 Feb 18, 2024
Copy link

📝 Jacoco Test Coverage

Overall Project 51.89% -1.89%
Files changed 62.79%

File Coverage
SignUpRequest.java 100% 🍏
User.java 100% 🍏
UserService.java 81.74% 🍏
UserController.java 7.55% -18.87%
CheckEmailRequest.java 0% 🍏
CheckNicknameRequest.java 0%

Copy link
Contributor

@yenzip yenzip left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이메일 중복과 로직이 비슷해서 금방 코드리뷰 할 수 있었네요!

고생 많으셨습니다 ❤️‍🔥

Comment on lines +209 to +210
String longNickname = faker.lorem()
.characters(User.MAX_NICKNAME_LENGTH + 1);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Member

@Sehee-Lee-01 Sehee-Lee-01 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

코드 깔끔하게 잘 짜주셔서 금방 봤네유! 상수 설정만 몇 개 코멘트 남겨둡니다!
🥰

Comment on lines 6 to 9
public record CheckNicknameRequest(
@NotBlank(message = "닉네임을 입력해주세요.")
@Size(max = 20, message = "닉네임은 20자 이하여야 합니다.")
String nickname
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

저 "20자"도 MAX_NICKNAME_LENGTH 적용해주면 좋을 것 같습니다!

@@ -14,7 +14,7 @@ public record SignUpRequest(
@Pattern(regexp = Password.PASSWORD_REGXP, message = "비밀번호는 8자 이상이며 영문, 숫자, 특수문자를 포함해야 합니다.")
String password,
@NotBlank(message = "닉네임을 입력해주세요.")
@Length(max = 20, message = "닉네임은 20자 이하여야 합니다.")
@Size(max = 20, message = "닉네임은 20자 이하여야 합니다.")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

요기도 MAX_NICKNAME_LENGTH 설정해주면 좋을 것 같습니당!

@Sehee-Lee-01 Sehee-Lee-01 removed this from the 🚀 1차 스프린트 milestone Feb 19, 2024
@Sehee-Lee-01 Sehee-Lee-01 linked an issue Feb 19, 2024 that may be closed by this pull request
2 tasks
@Sehee-Lee-01 Sehee-Lee-01 added this to the 🚀 2차 스프린트 milestone Feb 20, 2024
@uijin-j uijin-j changed the base branch from feat/#50-check-email-duplicates to dev February 20, 2024 07:05
Copy link

📝 Jacoco Test Coverage

Overall Project 67.6% -1.86%
Files changed 62.79%

File Coverage
SignUpRequest.java 100% 🍏
User.java 100% 🍏
UserService.java 100% 🍏
UserController.java 0% -20.41%
CheckEmailRequest.java 0% 🍏
CheckNicknameRequest.java 0%

@uijin-j uijin-j merged commit 1fd2436 into dev Feb 20, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✅ 테스트혀봤슈 빌드&테스트가 필요할 때 태그 🌳 밥 좀 드셔유 천천히 리뷰 🚀 더 만들어봤슈 기능 구현
Projects
None yet
Development

Successfully merging this pull request may close these issues.

닉네임 중복 확인 기능 구현
3 participants