Skip to content

feat(data): Upgrade Data Layer for Ratings and Recommendations

AGHARAHIMOV AGHASALIM requested to merge feature/data-layer-upgrade-ratings into main

What does this MR do?

This MR upgrades the data layer to capture the necessary data points for the upcoming Recommendation Engine.

Key Changes:

  1. Data Capture:
    • Modified MovieDto to capture genre_ids from the TMDB API.
    • Updated MovieEntity to store genres (as a string) and userRating.
  2. Rating System:
    • Implemented setUserRating in the repository.
    • Logic: When a user rates a movie (0.5 - 5 stars), it is saved to the local database AND automatically added to the default watchlist (as per requirements).
  3. UI Integration:
    • Connected the RatingBar in the Details Bottom Sheet to the backend logic.

Why needed?

We cannot build a recommendation algorithm without knowing what the user likes (Ratings) and what kind of movies they are (Genres). This MR provides that data foundation.

Merge request reports