Skip to content
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

Merged
merged 13 commits into from
Oct 17, 2024

Conversation

Kenzoud
Copy link
Contributor

@Kenzoud 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
This was linked to issues Oct 16, 2024
Copy link
Contributor

@othbcq othbcq left a 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!

Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
79.4% Coverage on New Code (required ≥ 80%)

See analysis details on SonarCloud

@Kenzoud Kenzoud requested a review from rihabbelmekki October 17, 2024 14:22
Copy link
Contributor

@rihabbelmekki rihabbelmekki left a 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

@Kenzoud Kenzoud merged commit 9e5c985 into main Oct 17, 2024
1 of 2 checks passed
@Kenzoud Kenzoud self-assigned this Oct 17, 2024
@Kenzoud Kenzoud deleted the feature/profile-repository-viewmodel branch November 3, 2024 18:54
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.

Implement Profile Repository Implement Profile View Model
3 participants