Skip to content

Fields 'product_quantity' and 'product_quantity_unit' not returned #13139

@SkypLabs

Description

@SkypLabs

What

  • The fields product_quantity and product_quantity_unit are not returned when also requesting some nutrition facts.

Steps to reproduce the behaviour

  1. Click on https://fr.openfoodfacts.org/api/v2/product/3254560034709?fields=product_name,brands,product_quantity,product_quantity_unit,nutrition_grade_fr,nova_group,energy-kcal_100g
  2. The product_quantity and product_quantity_unit fields are absent even though they were requested.
  3. Now click on https://fr.openfoodfacts.org/api/v2/product/3254560034709?fields=product_name,brands,product_quantity,product_quantity_unit,nutrition_grade_fr,nova_group
  4. The product_quantity and product_quantity_unit fields are present this time.

Expected behaviour

  • The product_quantity and product_quantity_unit fields should be present in both cases.

Why

  • It seems that the product_quantity and product_quantity_unit fields are not returned when requesting at the same time nutrition facts.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    To discuss and validate

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions