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

[Fix] 프로필 사진 빈 값 예외처리 삭제 #542

Merged
merged 3 commits into from
Oct 21, 2024

Conversation

slimsha2dy
Copy link

✅ 작업 내용

  • 프로필 수정 시 imageUrl은 null 값일 경우만 예외로 처리하도록 수정

@slimsha2dy slimsha2dy added the BE label Oct 19, 2024
@slimsha2dy slimsha2dy added this to the sprint 6 milestone Oct 19, 2024
@slimsha2dy slimsha2dy self-assigned this Oct 19, 2024
@slimsha2dy slimsha2dy linked an issue Oct 19, 2024 that may be closed by this pull request
1 task
Copy link

github-actions bot commented Oct 19, 2024

Test Results

 30 files   30 suites   8s ⏱️
273 tests 273 ✅ 0 💤 0 ❌
285 runs  285 ✅ 0 💤 0 ❌

Results for commit a89a0db.

♻️ This comment has been updated with latest results.

Copy link
Member

@nak-honest nak-honest left a comment

Choose a reason for hiding this comment

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

approve 드립니닷!!
고생 하셨습니다 알파카씌!!

그리고 PR 제목 바꿔주세욥 ㅋㅋㅋㅋ

Comment on lines +69 to 73
private boolean isUpdatable(String requestProfileImageUrl, Member member) {
return !requestProfileImageUrl.isEmpty() && !Objects.equals(requestProfileImageUrl,
member.getProfileImageUrl());
}
}
Copy link
Member

Choose a reason for hiding this comment

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

해당 부분은 프론트 분들과 함께 이야기 나눈 것으로 기억하는데,
지금 생각해보면 기존에 가지고 있는 url을 넘기는 것이 더 좋지 않을까라는 생각이 드네요!

빈 문자열로 들어올땐 프사를 바꾸지 않는다는 것이 약간은 숨겨진 로직일 수 있을 것 같아서요!

다음에 프론트분들과도 이야기 같이 해 보시죠!!

Copy link
Author

Choose a reason for hiding this comment

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

빈 문자열로 들어오면 빈 문자열로 바꾸고 기본 이미지는 프론트에서 처리하기로 했습니답
그래서 실제로 빈 문자열로 저장하고 s3 작업만 안 하도록 했는데 이것도 그럴까요?

Copy link
Member

Choose a reason for hiding this comment

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

아하 제가 로직을 좀 착각했네요 ㅎㅎ
이대로 가면 될 것 같슴다!!

@slimsha2dy slimsha2dy changed the title Feature/be/#541 [Fix] 프로필 사진 빈 값 예외처리 삭제 Oct 19, 2024
Copy link

@hangillee hangillee left a comment

Choose a reason for hiding this comment

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

LGTM

@slimsha2dy slimsha2dy merged commit 755c5c8 into develop/be Oct 21, 2024
3 checks passed
@slimsha2dy slimsha2dy deleted the feature/be/#541 branch October 21, 2024 04:16
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.

[Fix] - 프로필 사진 빈 값 예외처리 삭제
3 participants