Skip to content

Conversation

@Gyuhyeok99
Copy link
Contributor

관련 이슈

작업 내용

PATCH 메서드에 따라 전송한 리소스만 변경되게 수정하였습니다.

리뷰 요구사항 (선택)

파일이 empty인 상태일 때 굳이 예외를 던지기보단 변경을 안하는 게 클라이언트 입장에서 더 좋은 거 같아서 validateProfileImageNotEmpty 메서드는 그냥 지웠는데 괜찮을까요?

@Gyuhyeok99 Gyuhyeok99 added the 버그 Something isn't working label Feb 17, 2025
@Gyuhyeok99 Gyuhyeok99 self-assigned this Feb 17, 2025
Copy link
Collaborator

@nayonsoso nayonsoso left a comment

Choose a reason for hiding this comment

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

확인했습니다~

Copy link
Member

@wibaek wibaek left a comment

Choose a reason for hiding this comment

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

validateProfileImageNotEmpty()는 지우는게 맞겠네요.

현재는 이미지가 null이면 변경없게 해두었는데, null 이면 삭제하고 키가 없으면 유지하는 것도 한 방법이 될수 있겠네요. 저는 현재 구현이 좋은 것 같습니다.

if (imageFile != null && !imageFile.isEmpty()) {
if (!isDefaultProfileImage(siteUser.getProfileImageUrl())) {
s3Service.deleteExProfile(siteUser);
}
Copy link
Member

Choose a reason for hiding this comment

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

삭제전에 업로드 시도하는게 어떨까요? S3은 트랜잭션이 없으니까요 😊

@Gyuhyeok99 Gyuhyeok99 merged commit e9d8a09 into solid-connection:develop Feb 18, 2025
@Gyuhyeok99 Gyuhyeok99 deleted the fix/226-user-profile-patch branch May 11, 2025 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

버그 Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

내 정보 변경 로직 수정

3 participants