handle private tag categories recursively#20160
handle private tag categories recursively#20160TurboGit merged 1 commit intodarktable-org:masterfrom
Conversation
|
Needs a release note entry, TIA. |
|
Release notess. If a tag category is marked as private, all tags and subcategories under it are also treated as private. |
|
Thanks for the hint in the other thread! After some 40 export tests of the same image, there's something I still don't understand: If I create a completely new first-order tag (non-private, not a category), it gets exported. As a general "philosophical" comment, I don't think that this whole change of recursive tagging is a good thing. I flag categories as "private" if either the overall meta-category (people, place) is useless clutter in any exported file or if I want to keep it a secret how I categorize people (my personal life phase, sometimes the group that I associate them with). I only flag final-echelon sub-tags as "private" if I don't know a person's name correctly yet, or if I only know them by some stupid nickname. Consequently, in the "People" directory, I may only want to export the final echelon (Name). Under the "new" philosophy, I guess this should be possible by keeping all echelons "non-private" and selecting "omit hierarchy" in the export preferences. But I often also want to keep the second-last echelon of "People" (group), and omitting the hierarchy would blank this out. I think the "old" tagging philosophy was more flexible in this regard, and maybe the original proposal of adding a box to check off whether all adhering sub-tags should recursively be treated as private would have been a good compromise. |
I can reproduce and this is indeed a bug. I already found the cause. Can you please open a new issue for that?
I can reproduce as well, omit hierarchy seems to have no effect at all. But I did not touch the code for that in this PR so it is a different issue. Did this work in 5.4.0? The examples for your use cases can lead to controversial discussions. For me it seems logical to have all tags below a private category to be treated as private as well. Imagine the file explorer in your OS: Marking a folder as hidden is enough to hide all of its files and subfolders, regardless of their individual settings. Places|Country|Region|City seems strange to me, I would set it to Country|Region|City|Places. Now mark only Places as private and you get the result you want. But everyone has its own workflow. |
Will do tomorrow.
In the case of "omit hierarchy", I don't know since I didn't need it under the "old" approach.
Sorry, I was just both happy about your useful hint to the change as well as surprised by this change in philosophy. Maybe Pixls would have been the better place.
In my case, "Places" is the overall category, I didn't mean this as a variable placeholder for individual "places" but rather as the unchanging "root" of one of several trees (e.g. places, people, privacy settings, film and camera type for my RAW analog scans etc.). Thanks for checking so quickly! |
Ok, then just set it as a category, not private. Category tags aren't exported (will work again when this bug is fixed). |
When a tag category is marked private, all tags within this category are treated as private recursively.
closes #20142