Skip to content

feat: restructure tags to separate sources and parents - WIP#13239

Open
stephanegigandet wants to merge 8 commits intomainfrom
new-tags
Open

feat: restructure tags to separate sources and parents - WIP#13239
stephanegigandet wants to merge 8 commits intomainfrom
new-tags

Conversation

@stephanegigandet
Copy link
Contributor


=cut

sub get_minimal_tags_subset ($tagtype, $tags_ref) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would this be the function to drop tags in too, or should there be a separate function for this? I reckon the most simple would be to have a list of undesireables (per $tagtype) and check if the current $tagid is in there, and if it is, just drop it and move to the next $tagid?

I think it’d probably be good to do this in a separate function, since get_minimal_tags_subset() seems generally useful, where drop_undesired_tags() can probably get dropped after the transition/conversion.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, we would remove unwanted tags separately.

@codecov-commenter
Copy link

codecov-commenter commented Mar 9, 2026

⚠️ JUnit XML file not found

The CLI was unable to find any JUnit XML files to upload.
For more help, visit our troubleshooting guide.

@stephanegigandet
Copy link
Contributor Author

/update_tests_results

@github-actions github-actions bot added API Issues related to the Open Food Facts API. More specific labels exist & should be used (API WRITE…) Data import 🏭 Producers Platform https://wiki.openfoodfacts.org/Platform_for_producers labels Mar 11, 2026
@sonarqubecloud
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

API Issues related to the Open Food Facts API. More specific labels exist & should be used (API WRITE…) Data import multilingual products 🏭 Producers Platform https://wiki.openfoodfacts.org/Platform_for_producers Products Tags 🧪 tests

Projects

Status: To discuss and validate
Status: In progress

Development

Successfully merging this pull request may close these issues.

3 participants