Skip to content

[#585] 프로필 사진 수정이 반영되지 않는 문제를 해결한다#586

Merged
opficdev merged 6 commits into
developfrom
fix/#585-profile
Jun 11, 2026
Merged

[#585] 프로필 사진 수정이 반영되지 않는 문제를 해결한다#586
opficdev merged 6 commits into
developfrom
fix/#585-profile

Conversation

@opficdev

Copy link
Copy Markdown
Owner

🔗 연관된 이슈

🎯 의도

  • 프로필 이미지 URL이 동일한 상태에서 공급자 이미지 데이터가 변경되어도 기존 디스크 캐시 이미지가 계속 노출되는 문제 해결

📝 작업 내용

📌 요약

  • CacheableImage 제거
  • 프로필 이미지 데이터를 Domain use case 기반으로 요청하도록 변경
  • 원격 이미지 데이터 요청 성공 시 메모리 캐시에 저장하고, 실패 시 메모리 캐시로 fallback하는 구조 추가
  • 이미지 요청 구현에 Nexa 적용
  • 기본 프로필 placeholder 유지
  • 앱 버전 업

🔍 상세

  • FetchProfileImageDataUseCaseProfileImageDataRepository 계약 추가
  • ProfileImageDataRepositoryImpl에서 URL 캐시 히트가 아니라 원격 요청을 우선 수행하도록 변경
  • 원격 요청 성공 시 MemoryCacheStore에 이미지 Data 저장
  • 원격 요청 실패 시 같은 URL의 메모리 캐시 데이터 반환
  • ProfileImageDataServiceImpl에서 Nexa NXAPIClient로 이미지 raw data 요청
  • Nexa interceptor로 URLRequest.cachePolicy = .reloadIgnoringLocalCacheData 유지
  • ProfileViewModel에서 같은 avatar URL을 다시 받아도 이미지 data fetch side effect 실행
  • ProfileView에서 Data -> UIImage -> Image 렌더링으로 전환
  • CacheableImage 삭제
  • 앱 버전 1.2 -> 1.2.5

📸 영상 / 이미지 (Optional)

@opficdev opficdev self-assigned this Jun 11, 2026
@opficdev opficdev added the qa TestFlight에 배포 label Jun 11, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request introduces a profile image data fetching and caching mechanism, replacing the previous CacheableImage implementation. Key feedback includes resolving a potential URL combining bug in ProfileImageDataServiceImpl by using .get("") instead of passing the full URL string, and simplifying the state management in ProfileViewModel by replacing the custom ProfileAvatarImageData struct with a standard Data? type.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread Application/DevLogPresentation/Sources/Profile/ProfileView.swift
@opficdev opficdev merged commit f6b023d into develop Jun 11, 2026
5 checks passed
@opficdev opficdev deleted the fix/#585-profile branch June 11, 2026 01:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

qa TestFlight에 배포

Projects

None yet

Development

Successfully merging this pull request may close these issues.

프로필 사진 수정이 반영되지 않는 문제를 해결한다

1 participant