Bug 367536

Summary: Assigning hierarchical tag only assigns leaf
Product: [Applications] digikam Reporter: Bill Goodman <bg+kdex>
Component: Tags-EngineAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: normal CC: caulier.gilles
Priority: NOR    
Version: 5.1.0   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed In: 7.5.0
Sentry Crash Report:

Description Bill Goodman 2016-08-18 21:39:20 UTC
With hierarchical tags, adding a tag to a photo often adds only the leaf tag rather than the entire tag path.


Reproducible: Always

Steps to Reproduce:
1.Create hierarchical tags: animals>cat, animals>dog
2.Right-click photo in thumbnails view.
3. Select Assign Tag>More Tags
4. Check "animals" and "cat".
5. Click Apply.
6. Right click on a different photo.
7. Select Assign Tag > cat (Tags/animals)
8. 


Actual Results:  
Only "cat" tag is assigned. 

Expected Results:  
Assign "animals" and "cat" tags to photo.
Comment 1 caulier.gilles 2016-12-29 11:36:29 UTC
Can you reproduce the problem with 5.4.0-pre release installer for Windows,
available here :

https://drive.google.com/drive/folders/0BzeiVr-byqt5Y0tIRWVWelRJenM
Comment 2 Bill Goodman 2016-12-30 21:03:52 UTC
(In reply to caulier.gilles from comment #1)
> Can you reproduce the problem with 5.4.0-pre release installer for Windows,
> available here :
> 
> https://drive.google.com/drive/folders/0BzeiVr-byqt5Y0tIRWVWelRJenM

I just ran the described sequence on digiKam-5.4.0-01-Win64.exe. Same result. The bug remains.
Comment 3 Bill Goodman 2016-12-31 17:40:47 UTC
(In reply to caulier.gilles from comment #1)
> Can you reproduce the problem with 5.4.0-pre release installer for Windows,
> available here :
> 
> https://drive.google.com/drive/folders/0BzeiVr-byqt5Y0tIRWVWelRJenM

After additional research I conclude that this is more a disagreement over a design choice than a bug.

Hierarchical tags are used in many different ways. In some cases it would be appropriate to add only the leaf tag. In others it would be better to include the entire hierachical path to the leaf tag.

It might be nice to have an option to determine which occurs by default. But without that, neither choice is actually wrong--just a preference.

As a result, I recommend marking this bug report as resolved:invalid.