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
GNU Affero General Public License v3.0
632 stars 370 forks source link

Publish personal search product ranking code as separate external JS library #5028

Open stephanegigandet opened 3 years ago

stephanegigandet commented 3 years ago

The scoring and ranking of search products according to user preferences is currently done in 2 functions in https://github.com/openfoodfacts/openfoodfacts-server/blob/master/html/js/product-search.js

In order to make it easier for other apps and sites (e.g. the OFF browser extensions) to personalize search ranking, we could publish those 2 functions in a separate JS library that we could then publish on NPM.

github-actions[bot] commented 7 months ago

This issue has been open 90 days with no activity. Can you give it a little love by linking it to a parent issue, adding relevant labels and projets, creating a mockup if applicable, adding code pointers from https://github.com/openfoodfacts/openfoodfacts-server/blob/main/.github/labeler.yml, giving it a priority, editing the original issue to have a more comprehensive description… Thank you very much for your contribution to 🍊 Open Food Facts