nathanhollows / NuggetNav

A compass that points to the nearest ready to eat chicken nuggets
https://nuggetwatch.co.nz
1 stars 0 forks source link

Save sweet and sour ratings (thumbs) in DB #15

Open nathanhollows opened 5 years ago

nathanhollows commented 5 years ago

"Is this review Sweet or Sour?" should be saved externally as well as locally, and the overall 'sweetness' rating for that review should be displayed.

nathanhollows commented 5 years ago

On the website there is a cookie that is saved, and the value read when thumbs are clicked. In the app there is no such cookie value being sent. The API could blindly accept thumbs up / down and rely on the app to remember the current value.

The API call for reviews is cached, sweetness ratings are cached also. Should leaving a rating clear the cache or should this be handled differently?

I'm disabling the thumbs until I can think how best to implement this.