-
-
Notifications
You must be signed in to change notification settings - Fork 400
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
Mobile app: fine-tuning needed for 'image_to_update' #9226
Comments
@monsieurtanuki Sorry for the late reply. The date you get back is not the date the image was selected, but the date that the image was uploaded. So if somebody crops an image from 5 years ago and assigns it to the front_fr image of the product by selecting it / cropping it, you still get a 5 year age, and we still want to ask the user for a new image. |
For the second point, it could be done, but the use case might be less compelling and could be done by using the "images" field which contains the needed data to compute image age. |
@stephanegigandet Thank you for your explanations. The way I would summarize it is:
The next problem is to make it obvious for the user in Smoothie:
That means we need to manually flag uploaded photos as "too old" (so that the users don't select them). |
@monsieurtanuki it's best to move as much logic to the server, so that we have a consistent experience on web and mobile, so the server should compute images_to_update_fr. The decision could be made on age to start with, but later it could be made with other inputs (OCR from the images, nutrition facts that have been changed: ask for a new nutrition image etc.) |
Problem
In the latest Smoothie POC (openfoodfacts/smooth-app#4674), we want to display an additional icon for pictures that are outdated - let's say more than 1 year old.
There are two problems.
First, we expect seconds in
images_to_update_fr
. But looking at https://world.openfoodfacts.org/api/v3/product/3017620422003?fields=code,product_name,images_to_update_fr, we getWhich does not match what we find in history about last modification for https://fr.openfoodfacts.org/produit/3017620422003/nutella-ferrero:
Is there something wrong? (possibly, my interpretation of how to read the data)
Second, AFAIK we get the image freshness only for the specified languages.
And we would like the image freshness for all languages, a bit like what we have for product name ("product_name_languages").
A typical use case would be: "I query the data in French, but I would like an access to all languages' image freshness data, so that in my image screen I can display the freshness of images not only for French images but Italian images".
Something like 'image_to_update_languages'?
Proposed solution
The text was updated successfully, but these errors were encountered: