openfoodfacts / taxonomy-editor

Taxonomies are at the heart of Open Food Facts data structure - this project provides an editor
https://wiki.openfoodfacts.org/Taxonomy_editor
GNU Affero General Public License v3.0
18 stars 22 forks source link

Join entries with statistics of usage in openfoodfacts #534

Open alexgarel opened 3 months ago

alexgarel commented 3 months ago

An important info for taxonomy is the actual usage of each entry in openfoodfacts database.

We could have a process to join openfoodfacts-query statistics with taxonomy entry, ideally at import time, with an option to refresh those stats manually (an API and an action in the interface).

### Tasks
- [ ] add settings and a module to join openfoodfacts-query and make stats requests
- [ ] Join openfoodfacts-query statistics usage in the taxonomy (at import time + add an API)
- [ ] integrate statistics visualization in the interface + add a button to update statistics in the interface
- [ ] Add a sort option by usage in the search page

Note: one important thing is to prefix statistics with short project name (off for openfoodfacts, obf for openbeautyfacts, to be able to use stats for more than one project in the future).

teolemon commented 2 months ago

This is a great idea 👍