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

Store org data in MongoDB to ease pro platform dashboard #10245

Open
stephanegigandet opened this issue May 7, 2024 · 0 comments
Open

Store org data in MongoDB to ease pro platform dashboard #10245

stephanegigandet opened this issue May 7, 2024 · 0 comments
Labels
✨ Feature Features or enhancements to Open Food Facts server MongoDB We have 2 mongodb collections: one for current products, and one for obsolete products 🏭 Producers Platform - admin tools 🏭 Producers Platform https://wiki.openfoodfacts.org/Platform_for_producers

Comments

@stephanegigandet
Copy link
Contributor

We currently store organization objects in .sto files in the orgs directory.
In addition, we should also store this data in a new "orgs" collection of the "off" database in MongoDB.

This will be useful in particular to create a dashboard for the administrators of the pro platform, with a table that lists all organizations (#9737)

Related code is in lib/ProductOpener/Orgs.pm (see also data.pm and Products.pm at the end of store_product() to see how we store product data in MongoDB).

@stephanegigandet stephanegigandet added 🏭 Producers Platform https://wiki.openfoodfacts.org/Platform_for_producers 🏭 Producers Platform - admin tools labels May 7, 2024
@stephanegigandet stephanegigandet changed the title Store organizations data in MongoDB Store org data in MongoDB May 7, 2024
@stephanegigandet stephanegigandet changed the title Store org data in MongoDB Store org data in MongoDB to ease pro platform dashboard May 7, 2024
@teolemon teolemon added MongoDB We have 2 mongodb collections: one for current products, and one for obsolete products ✨ Feature Features or enhancements to Open Food Facts server labels May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ Feature Features or enhancements to Open Food Facts server MongoDB We have 2 mongodb collections: one for current products, and one for obsolete products 🏭 Producers Platform - admin tools 🏭 Producers Platform https://wiki.openfoodfacts.org/Platform_for_producers
Projects
Status: To discuss and validate
Status: Triage needed
Development

No branches or pull requests

2 participants