-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: implement ProfileRepository and ProfileViewModel #44
Conversation
Kenzoud
commented
Oct 16, 2024
- Implemented ProfileRepositoryFirestore for managing user profile data with Firestore
- Added ProfileViewModel to handle data fetching, updating, and observing user information
- Integrated LiveData for observing profile data and error handling
- Added methods for retrieving, updating, and observing user profiles - Integrated Firebase Firestore and FirebaseAuth for data storage and authentication - Implemented support for logging out users
…yFirestore - Inject FirebaseAuth and instance into ProfileRepositoryFirestore
- Implement unit tests for ProfileViewModel functions: fetchUserProfile, updateUserProfile, and logoutUser
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job on the implementation. The code looks clean and well-structured. Good use of the MutableStateFlow in the ProfileViewModel, which is well-implemented and allows for reactive state management. You might want to improve code coverage, but overall, great work!
- Added unit tests to improve coverage for the `init`, `getUserProfile`, and `updateUserProfile` functions.
…rofile-repository-viewmodel
Quality Gate failedFailed conditions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Clean code. Approved for merge