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

Import packaging components data (shape 1, material 1, shape 2, material 2 etc.) from producers #7021

Closed
Tracked by #6374
stephanegigandet opened this issue Jul 6, 2022 · 2 comments
Assignees
Labels
Data import ✨ Feature Features or enhancements to Open Food Facts server Fixed ? This issue might have been fixed. We can close them once we verify that they have. 🎯 P1 📦 Packaging https://wiki.openfoodfacts.org/Category:Recycling 🏭 Producers Platform https://wiki.openfoodfacts.org/Platform_for_producers

Comments

@stephanegigandet
Copy link
Contributor

stephanegigandet commented Jul 6, 2022

What

  • Some producers send us Excel files that have some data about packaging components, usually with different columns in Excel files.

e.g. from the Eco-Score template:

Format Matériau Format Matériau Format Matériau

A retailer:

Format_1 Matériau_1 Format_2 Matériau_2

A producer

Format Matériau

This data currently cannot be loaded through the producers platform.

Proposed solution

  • The values for shapes and materials are in a specific language (e.g. French), and not necessarily normalized.
  • Like we do for other kind of data (e.g. ingredients lists), we can store the values as-is, and then normalize them to populate another field.
  • We could store this data in a new structure in the product:

producer_packagings : {
lc : "fr",
shape_1 : "some shape name in French",
material_1 : "some material name in French",
shape_2 : "another shape",
material_2 : "another material",
}

  • I'd like to avoid a more complex structure (e.g. list of packaging components, each with a hash for shape and material) and keep this data similar to the input we get (columns).
  • Then once we have this structure, it can be parsed, normalized etc. to enrich the packagins structure that we already derive from packaging tags and recycling instructions.

Part of

@stephanegigandet stephanegigandet added ✨ Feature Features or enhancements to Open Food Facts server 📦 Packaging https://wiki.openfoodfacts.org/Category:Recycling Data import 🏭 Producers Platform https://wiki.openfoodfacts.org/Platform_for_producers labels Jul 6, 2022
@stephanegigandet stephanegigandet self-assigned this Jul 6, 2022
@stephanegigandet
Copy link
Contributor Author

stephanegigandet commented Sep 1, 2022

@manon-corneille
Copy link
Contributor

Hi guys, any idea of when this issue will be resolved please? It's preventing org-bonduelle to import their data

@teolemon teolemon moved this to In Progress in 📦 Packaging improvements Dec 2, 2022
@manon-corneille manon-corneille added the Fixed ? This issue might have been fixed. We can close them once we verify that they have. label Dec 21, 2023
@github-project-automation github-project-automation bot moved this from Triage needed to Done in 🏭 Producers Platform Dec 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Data import ✨ Feature Features or enhancements to Open Food Facts server Fixed ? This issue might have been fixed. We can close them once we verify that they have. 🎯 P1 📦 Packaging https://wiki.openfoodfacts.org/Category:Recycling 🏭 Producers Platform https://wiki.openfoodfacts.org/Platform_for_producers
Projects
Status: Done
Archived in project
Development

No branches or pull requests

3 participants