openfoodfacts / openfoodfacts-server

Open Food Facts database, API server and web interface - 🐪🦋 Perl, CSS and JS coders welcome 😊 For helping in Python, see Robotoff or taxonomy-editor
http://openfoodfacts.github.io/openfoodfacts-server/
GNU Affero General Public License v3.0
660 stars 389 forks source link

Big: Serving size is missing digits to strict #10961

Open aleene opened 3 weeks ago

aleene commented 3 weeks ago

What

When I want to specify that a product does not mention a portion/serving size, I would like to enter a dash (-). Thius now results in an error.

Steps to reproduce the behaviour

Just enter a dash ("-") in the field and save

Expected behavior

No error

Why

Entering missing data is also data

Type of device

Number of products impacted

Many

jusdekiwi commented 3 weeks ago

That would be a cool feature! Same as for the fibers in the NT.

CharlesNepote commented 3 weeks ago

In the serving size isn't it? Seems to be quite rare for me. Can you give few examples to be sure?

In the meantime, you can use Folksonomy Engine to do so, but I guess it would be better to allow dash in the Serving size field.

October-Food-Facts commented 3 weeks ago

Can we get this standard for quantities too? Many products don't specify an amount, a weight – not being required by law in a number of cases.

jusdekiwi commented 3 weeks ago

In the serving size isn't it? Seems to be quite rare for me. Can you give few examples to be sure?

In the meantime, you can use Folksonomy Engine to do so, but I guess it would be better to allow dash in the Serving size field.

You mean you don't often see products without a serving size? seems to happen >50% of the time for me

aleene commented 3 weeks ago

Examples: