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

Refactor moviepreference #64

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Open

Conversation

norseboar
Copy link
Collaborator

@norseboar norseboar commented Nov 4, 2019

Pretty big change here.

Main difference is that a user's MoviePreferences are added at page load. All endpoints that query movies (search, explore, etc) all return Movie objects from TMDB.

Another change is that all MoviePreference CRUD APIs have been replaced with an upsert one. "Liking" a movie for the first time, vs changing a movie from "Like" to "Dislike" (or removing it entirely) all seem like similar operations from the UI, and there's a lot of overhead to need to figure out whether an action should cause an insert or update. We had no way to remove preferences, and I think that's probably ok long-term (our preferences can just keep track of a "neutral" state).

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.

1 participant