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
660 stars 389 forks source link

fix: allow to query tags without normalization #11008

Closed stephanegigandet closed 1 week ago

stephanegigandet commented 1 week ago

This is to be able to run commands with update_all_products.pl like:

./scripts/update_all_products.pl --query categories_tags=en:some-old-entry-that-is-now-a-synonym!

the ending ! means that the value should not be normalized with the taxonomy, but instead should be searched for as specified in mongodb

sonarcloud[bot] commented 1 week ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarQube Cloud

teolemon commented 1 week ago

Just created an issue about it with pseudo code: https://github.com/openfoodfacts/openfoodfacts-server/issues/11011