fix: 타 유저 활동기록 더보기 목록이 조회되지 않음 - #952
Conversation
ActivityDetailActivity의 OtherUserPageViewModel은 OtherUserPageActivity와 다른 인스턴스여서 프로필이 조회되지 않았고, 프로필이 null이면 어댑터에 빈 리스트가 전달되어 목록이 비어 보였다.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. Walkthrough타 사용자 활동 상세 화면이 타 사용자 프로필의 사용자 ID를 Changes타 사용자 활동 상세 조회
Estimated code review effort: 1 (Trivial) | ~2 minutes Merge Risk: ⚪ Minimal · up to This change restores activity-list rendering for other users by loading the selected profile through the existing app flow. No actionable merge-blocking risk remains beyond normal checks and review. Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
📌𝘐𝘴𝘴𝘶𝘦𝘴
https://discord.com/channels/1185753783020568648/1537825273863479326
📎𝘞𝘰𝘳𝘬 𝘋𝘦𝘴𝘤𝘳𝘪𝘱𝘵𝘪𝘰𝘯
ActivityDetailActivity에서 타 유저 프로필을 직접 조회하도록updateUserId()호출을 추가했습니다.원인
ActivityDetailActivity의otherUserPageViewModel은by viewModels()로 이 액티비티에 새로 생성되는 인스턴스라OtherUserPageActivity의 것과 공유되지 않습니다.OtherUserPageViewModel은updateUserId()를 호출해야 프로필을 조회하는데 이 화면에서는 호출되지 않아otherUserProfile이 계속null이었습니다.피드 조회 자체는 성공하지만 어댑터에 빈 리스트가 전달되어 화면에만 아무것도 그려지지 않았습니다.
내 활동은
MyPageViewModel이init에서 프로필을 조회하므로 영향이 없습니다.📷𝘚𝘤𝘳𝘦𝘦𝘯𝘴𝘩𝘰𝘵
수정 전
수정 후
💬𝘛𝘰 𝘙𝘦𝘷𝘪𝘦𝘸𝘦𝘳𝘴
Summary by CodeRabbit