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

Quality facet - Nutrition - list products where serving size can't be parsed #3029

Closed
Tracked by #5538
CharlesNepote opened this issue Mar 13, 2020 · 7 comments · Fixed by #8685
Closed
Tracked by #5538

Quality facet - Nutrition - list products where serving size can't be parsed #3029

CharlesNepote opened this issue Mar 13, 2020 · 7 comments · Fixed by #8685
Assignees
Labels
🧽 Data quality - Measure - Quality facets One of the facets available in Open Food Facts is /quality & allows us to spot products w/ bad data 🧽 Data quality https://wiki.openfoodfacts.org/Quality ✨ Feature Features or enhancements to Open Food Facts server Outreachy Good tasks for Outreachy applicants. See #productopener on our Slack https://slack.openfoodfacts.org portions

Comments

@CharlesNepote
Copy link
Member

CharlesNepote commented Mar 13, 2020

What

Serving size has a specific goal: to let Open Food Facts app make a proportional calculation of each nutrient per serving size -- see: https://en.wiki.openfoodfacts.org/Data_fields

But dozens of "serving_size" values can't be parsed. Examples: 30 gr, 2 liters, 60, 9 candies and 2 biscuits and son on.

We should have a new quality facet to list each product where serving_size (and quantity?) has a value that can't be parsed.

Part of

@CharlesNepote CharlesNepote added ✨ Feature Features or enhancements to Open Food Facts server 🧽 Data quality https://wiki.openfoodfacts.org/Quality 🧽 Data quality - Measure - Quality facets One of the facets available in Open Food Facts is /quality & allows us to spot products w/ bad data portions labels Mar 13, 2020
@stephanegigandet
Copy link
Contributor

@CharlesNepote
Copy link
Member Author

For quantity we have one: https://world.openfoodfacts.org/data-quality/quantity-not-recognized

Thanks. 14,342 products on 2020-03-21.

Reminder for further investigation:

@stephanegigandet stephanegigandet added the Outreachy Good tasks for Outreachy applicants. See #productopener on our Slack https://slack.openfoodfacts.org label Mar 25, 2020
@github-actions
Copy link
Contributor

Stale issue message

@github-actions github-actions bot closed this as completed Jul 7, 2020
@teolemon teolemon changed the title New quality facet to list products where serving size can't be parsed Quality facet - list products where serving size can't be parsed Oct 11, 2021
@teolemon teolemon changed the title Quality facet - list products where serving size can't be parsed Quality facet - Nutrition - list products where serving size can't be parsed Oct 11, 2021
@alexgarel
Copy link
Member

@benbenben2 I think it's good to have it as a facet however.

@benbenben2
Copy link
Collaborator

@alexgarel @CharlesNepote @stephanegigandet
For this Input:
a1
We get this:
a2

Whereas for this input:
b1
We get this:
b2
and this:
b3

This " Nutrition data per serving - Serving quantity is 0 " facet, has been introduced by @stephanegigandet , before the creation of this current issue.

On the other hand, another example: https://world.openfoodfacts.org/product/3322680001236/12-crepes-de-landerneau-le-ster
image
image
And there is not error regarding serving quantity.

So, this is a little bit misleading because this error is raised when there is actually no serving quantity defined. And there is no error raised when serving quantity is 0.

What do you want to do there?

  • rename error and include both cases: 0 and not defined, "serving quantity not recognized"
  • have 2 separate errors (1 for 0 and 1 for not defined)
  • something else

@stephanegigandet
Copy link
Contributor

We should have 3 different errors I think :)

  • Nutrition data per serving - Serving quantity is unknown
  • Nutrition data per serving - Serving quantity is not recognized
  • Nutrition data per serving - Serving quantity is 0 --> only when we actually get "0 g" or similar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🧽 Data quality - Measure - Quality facets One of the facets available in Open Food Facts is /quality & allows us to spot products w/ bad data 🧽 Data quality https://wiki.openfoodfacts.org/Quality ✨ Feature Features or enhancements to Open Food Facts server Outreachy Good tasks for Outreachy applicants. See #productopener on our Slack https://slack.openfoodfacts.org portions
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

5 participants