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

refactor: update PropertyFilterSearchTerm validation/parsing #470

Open eric-nguyen-cs opened 7 months ago

eric-nguyen-cs commented 7 months ago
          nit: instead of this pattern I would have added a cached_property "terms" that would have returned a tuple (or dict) with not / inherited / name and value from filter_value and used it everywhere :-)

_Originally posted by @alexgarel in https://github.com/openfoodfacts/taxonomy-editor/pull/456#discussion_r1537739178_