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

[OING-343] refactor: 가족 이름 컬럼 타입 및 검증 로직 수정 #267

Merged
merged 4 commits into from
Jun 27, 2024

Conversation

Ji-soo708
Copy link
Member

@Ji-soo708 Ji-soo708 commented Jun 26, 2024

❓ 기능 추가 배경


family_name 컬럼을 아홉자까지 허용하도록 수정하고 familyName을 초기화해도 수정자가 기록되도록 수정했습니다.

➕ 추가/변경된 기능


  • family_name 컬럼을 아홉자까지 허용
  • familyName을 초기화해도 수정자가 기록되도록 수정

🥺 리뷰어에게 하고싶은 말


확인해주세요~

🔗 참조 or 관련된 이슈


https://no5ing.atlassian.net/browse/OING-343

@Ji-soo708 Ji-soo708 requested review from Kwon770 and CChuYong June 26, 2024 08:38
@Ji-soo708 Ji-soo708 self-assigned this Jun 26, 2024
@github-actions github-actions bot changed the title refactor: 가족 이름 컬럼 타입 및 검증 로직 수정 [OING-343] refactor: 가족 이름 컬럼 타입 및 검증 로직 수정 Jun 26, 2024
}

private void validateFamilyName(String familyName) {
if ((familyName.codePoints().count() > 10) || familyName.isBlank()) {
if ((familyName.codePoints().count() > 9) || familyName.isBlank()) {
Copy link
Member Author

Choose a reason for hiding this comment

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

회원 닉네임 로직처럼 사용자가 띄어쓰기 하나만 입력하면 예외던지도록 유지했습니다

Copy link

github-actions bot commented Jun 26, 2024

Test Results

 52 files  ±0   52 suites  ±0   11s ⏱️ ±0s
144 tests ±0  144 ✅ ±0  0 💤 ±0  0 ❌ ±0 
145 runs  ±0  145 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit bef592a. ± Comparison against base commit 5234e8e.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Jun 26, 2024

Code Coverage

File Coverage [77.08%]
Family.java 82.22% 🍏
UpdateFamilyNameRequest.java 0%
Total Project Coverage 52.65% 🍏

Copy link
Collaborator

@Kwon770 Kwon770 left a comment

Choose a reason for hiding this comment

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

전체적으로 문제없는데, 머지된 코드 중에 잘못된 변수명이 있어서 이것만 확인부탁드려요

@@ -94,18 +86,15 @@ public void resetScore() {
}

public void updateFamilyName(String familyName, String loginFamilyId) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

변수명이 잘못된 것 같아요. 기능상 수정 멤버 id가 들어가야하고 Service에서도 loginMemberId를 넣고있네요. 확인부탁드려요!

family.updateFamilyName(familyName, loginMemberId);

Copy link
Member Author

Choose a reason for hiding this comment

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

아 그러네요! 확인 감사합니다. 👍

Copy link

@Ji-soo708 Ji-soo708 requested a review from Kwon770 June 27, 2024 07:24
Copy link
Collaborator

@Kwon770 Kwon770 left a comment

Choose a reason for hiding this comment

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

LGTM!

@Kwon770 Kwon770 merged commit 9dc8f1f into dev Jun 27, 2024
4 checks passed
@Kwon770 Kwon770 deleted the feature/OING-343 branch June 27, 2024 07:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants