Skip to content

[fix] 프로필 업데이트 안되는 문제 해결#83

Merged
kelly-chui merged 3 commits intodevfrom
fix/#75/fix-update-profileinfo
Jun 11, 2025
Merged

[fix] 프로필 업데이트 안되는 문제 해결#83
kelly-chui merged 3 commits intodevfrom
fix/#75/fix-update-profileinfo

Conversation

@kelly-chui
Copy link
Copy Markdown
Contributor

🔖  Issue Number

close #75

📙 작업 내역

구현 내용 및 작업 했던 내역을 적어주세요.

Screenshot 2025-04-10 at 3 24 06 AM
  • JSON 데이터와 Supabase 테이블 간 어트리뷰트 이름 미스매치 수정
    • Postman, 앱 양쪽 모두 업데이트가 잘 동작하는걸 확인했습니다.
  • Interactor에 있던 Task presenter로 옮기고 코드 리더빌리티 약간 향상
    • if let을 써야할 부분에 guard let을 쓴 것을 수정했습니다.
  • 토스트 등장 타이밍 변경

📝 PR 특이사항

PR을 볼 때 팀원에게 알려야 할 특이사항을 알려주세요.

  • PR 길이에 비해 트러블 슈팅 문서가 생각보다 깁니다...
  • 코드를 재분석 하면서 몇가지 잠재적인 문제들을 발견했습니다.
    • 정확한 원인은 파악하지 못했지만, 토스트 타이밍에 약간 문제가 생길 가능성이 있는 것 같습니다. (이 PR과는 연관이 없어 더 살펴보고 이슈 생성이 필요합니다.)
    • 이미지 열화 문제가 있습니다. 이미지를 변경하지 않더라도 이미지를 넘기고 jpeg으로 압축하기 때문입니다.

👻 레퍼런스

  • 깃헙 위키 페이지

단순히 Supabase 테이블과 JSON 파일 네임 미스매칭 문제였습니다.
프로젝트 컨벤션에 맞게 변경했습니다.
- 토스트에 타이밍 문제가 있는 것 같습니다. 토스트를 먼저 보이고, 그 이후에 버튼 액션을 실행하면 pop이 제대로 되지 않아 뷰에 갇히게 됩니다.
- 현재 코드에서 직접적으로 체감할 수 있는 문제는 없습니다.
imageData: profileImage?.jpegData(compressionQuality: 0.7)
)
} catch {
SNMLogger.error(error.localizedDescription)
Copy link
Copy Markdown
Contributor Author

@kelly-chui kelly-chui Apr 9, 2025

Choose a reason for hiding this comment

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

SNMErrorHandler로 하려 했는데, 이건 일괄 처리하는게 좋을 것 같아서 Logger로 냅뒀습니다. 이 소스 파일 내부에서도 현재 이슈랑 맞지 않는 변경사항들이 늘어나는 것 같아서요.

Copy link
Copy Markdown
Contributor

@pearhyunjin pearhyunjin 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
Copy Markdown
Contributor

@green-yoon87 green-yoon87 left a comment

Choose a reason for hiding this comment

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

LGTM!!

Copy link
Copy Markdown
Contributor

@soletree soletree left a comment

Choose a reason for hiding this comment

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

굿입니다~~ bb

@kelly-chui kelly-chui merged commit e4df0f7 into dev Jun 11, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[bug] 정보 수정 서버 로직

4 participants