Skip to content

fix(profile): 프로필 수정 로딩 실패 시 크래시를 막고, 로딩 호출을 동시에 부른다 - #614

Merged
Sadturtleman merged 1 commit into
developfrom
refactor/608
Oct 8, 2026
Merged

Sadturtleman merged 1 commit into
developfrom
refactor/608

Conversation

@Sadturtleman

Copy link
Copy Markdown
Contributor

작업 내용

  • ProfileEditViewModel.load: launch 안에 coroutineScope 없이 async 를 두어, 조회 실패 시 예외가 runCatching 을 지나 부모로 전파돼 앱이 죽던 버그 수정 → coroutineScope 로 감싸 오류 상태로 표시
  • MyTierHistoryViewModel.load: 두 async 를 coroutineScope 안으로
  • SettingsViewModel.load: 읽은 답변 기록 조회도 다른 네 조회와 함께 동시에 호출
  • InquiryListViewModel.load: 문의 목록과 읽은 답변 기록을 동시에 호출 (기록 조회 실패는 기존처럼 흡수)
  • 회귀 테스트 추가: 「프로필 조회가 실패하면 크래시 없이 오류를 보여준다」 — 수정 전 코드에서 실패함을 확인

참고

  • 프로필 저장(save)은 범위에서 제외

Closes #608

🤖 Generated with Claude Code

- ProfileEditViewModel.load: async 를 coroutineScope 로 감싼다. launch 에 바로 건 async 가 실패하면 부모 launch 까지 실패해 크래시했다
- MyTierHistoryViewModel.load: 티어 이력과 점수 변동을 함께 받는다(부분 성공 규칙 유지)
- SettingsViewModel.load: 읽은 답변 기록을 기존 병렬 조회에 합친다
- InquiryListViewModel.load: 문의 목록과 읽은 답변 기록을 함께 받는다(기록 실패는 지금처럼 흡수)

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@sonarqubecloud

sonarqubecloud Bot commented Oct 8, 2026

Copy link
Copy Markdown

@Sadturtleman
Sadturtleman merged commit 1bdffce into develop Oct 8, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

profile·support: 로딩 병렬화 + 프로필 수정 로딩 실패 시 크래시 수정

1 participant