Tagging: unassigned partially matched tags will be written to export
Describe the bug/issue
Any tag that partially matches an assigned tag from the beginning will be also written to the exported files.
In crude regex: ^.*
To Reproduce
- Have a tag in your collection, does not need to be used in the current library. e.g.
tree - Assign an extended variant of that tag to an image, e.g.
tree-hugger - Do NOT assign
treeto that image - Export
- Check metadata: both
tree-hugger(as expected) andtree(not expected) will be there
Further notes
The export will respect the rules associated with private tags.
Tags set as category will not be exported.
With a large enough tag collection this can lead to some very unexpected tag exports. For example any short number like 1 will be exported together with anything that also starts with 1, wether it is 10 or 1world. Same goes for short words, compound words and so on.
Platform
- darktable version : 3.6.0 on BunsenLabs Lithium (debian 10)
I'll at this. Thanks for reporting.
The export will respect the rules associated with private tags. Tags set as category will not be exported.
Have you found any issue related to those ?
private tags categories
Have you found any issue related to those ?
No.
But I found that the matching goes across the full hierarchy if that wasn't clear from the initial report.
So tree|birch will trigger an export of tree even if "omit hierarchy" is set to on.
Of course only if tree is present as a separate tag in the collection.
Yes, omit hierarchy is a very old setting which could be removed now, but I've avoided to change the old logic. His purpose is to avoid to export the elements of the path if they are not themselves a tag. With the new logic you set those elements as category to prevent to export them.