Skip to content

Feature #87 : 유저 프로필 이미지 업데이트 기능 추가#88

Merged
seokhwan-an merged 3 commits intodevelopfrom
feature/add_update_user_profile
Feb 26, 2025
Merged

Feature #87 : 유저 프로필 이미지 업데이트 기능 추가#88
seokhwan-an merged 3 commits intodevelopfrom
feature/add_update_user_profile

Conversation

@seokhwan-an
Copy link
Copy Markdown
Collaborator

📝 작업 내용

이번 PR에서 작업한 내용을 간략히 설명(이미지 첨부 가능)

  • 사용자 프로필을 업데이트 하는 api를 추가했습니다.

💬 작업 시 고민사항

기능을 추가하거나 수정하는 상황에서 의문이 생긴 점이나 배운점 추가

  • 테스트를 진행하던 중에 jpa의 더티채킹을 실행되지 않아 1시간 가량을 삽질한 경험을 했습니다.
    • UserService 내 필드로 FileService가 있어 테스트에서는 실제 데이터를 저장하는 대신 문자열을 반환하는 객체를 만들었고 이를 테스트에서 활용하기 위해 new UserService(userRepository, new StaticFileService())를 이용했지만 테스트가 실패하는 문제 발생
    • spring bean으로 등록된 객체을 이용해야 transaction이 적용된다는 것을 배웠습니다.
    • TestConfiguration을 이용해서 new UserService(userRepository, new StaticFileService())를 bean으로 등록하고 @Import를 통해 테스트에 적용해서 해결했습니다.

#️⃣ 연관된 이슈

연관된 이슈 번호를 모두 작성

close #87

@seokhwan-an seokhwan-an self-assigned this Feb 24, 2025
@github-actions
Copy link
Copy Markdown

Test Results

148 tests   148 ✅  10s ⏱️
 51 suites    0 💤
 51 files      0 ❌

Results for commit 058c550.

@seokhwan-an seokhwan-an merged commit ae079cd into develop Feb 26, 2025
3 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.

[FEAT] 유저 프로필 사진 업데이트 기능 추가하기

1 participant