openfoodfacts / openfoodfacts-androidapp

(Legacy) Native version of Open Food Facts on Android - Coders & Decoders welcome 🤳🥫
https://android.openfoodfacts.org
Apache License 2.0
772 stars 447 forks source link

Nutriscore displayed in the history is different from the product page #3161

Closed Fabe56 closed 4 years ago

Fabe56 commented 4 years ago

Hi, This not happen for every product, but I have sometimes noticed this inconsistency between the Nutriscore displayer in the history vs the product page.

For example, steps to reproduce the behavior:

  1. Go to Lait écrémé - Envia - https://fr.openfoodfacts.org/produit/20842680/lait-ecreme-envia
  2. Then click on 'history'
  3. On history page, the Nutriscore displayed is D versus B on product page

Screenshots Screenshot_20200522-093050 Screenshot_20200522-093057

Smartphone (please complete the following information):

teolemon commented 4 years ago

Hi, it's because a number of values are stored in the History, and not refreshed, including the product name, image, and Nutri-Score. We need to set up a refresh mechanism (on pull to refresh ?)

teolemon commented 4 years ago

@Fabe56 I opened #3162 which is a more general fix to your problem