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
http://openfoodfacts.github.io/openfoodfacts-server/
GNU Affero General Public License v3.0
653 stars 381 forks source link

Personal search preferences in /api/v0/preferences do not match what is used on the website #10406

Open stephanegigandet opened 4 months ago

stephanegigandet commented 4 months ago

As @alexgarel noted, preferences from /api/v0/preferences (defined in Display.pm display_preferences_api() ) are not used in product-search.pl function match_product_to_preferences(product, product_preferences) (and they do not match).

We need to update the /api/v0/preferences (which are outdated) and use them in product-search.pl

We should also check what the mobile app does.

alexgarel commented 4 months ago

@teolemon and @g123k, what is the mobile app doing ?