Bug 410275 - Tag list disappear when drag and dropping tag to top of the list
Summary: Tag list disappear when drag and dropping tag to top of the list
Status: RESOLVED NOT A BUG
Alias: None
Product: digikam
Classification: Applications
Component: Tags-Keywords (show other bugs)
Version: 6.2.0
Platform: Appimage Linux
: NOR minor
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-07-27 12:53 UTC by MarcP
Modified: 2022-01-10 21:14 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 7.5.0
Sentry Crash Report:


Attachments
Screen capture showing this bug (792.37 KB, image/gif)
2019-07-27 12:53 UTC, MarcP
Details

Note You need to log in before you can comment on or make changes to this bug.
Description MarcP 2019-07-27 12:53:56 UTC
Created attachment 121773 [details]
Screen capture showing this bug

SUMMARY

The summary describes it. I have attached a screen capture so you can see this exact behavior. I particularly wanted to merge a duplicated tag, so I dragged the tag to the top of the list (where I wanted to drop it), and the tag list disappeared.

This does not happen if the current tag list is short enough so all tags are visible on screen without scrolling up. It doesn't happen either if no term is used in the search box to restrict the number of results.


STEPS TO REPRODUCE
1. In the Tags panel, search for some word that contains lots of tags, in order to fill the tag list, so scrolling is needed.
2. Drag one of the tags from the bottom to the top of the list.

OBSERVED RESULT
The tag list disappears, before dropping the tag.

EXPECTED RESULT
Nothing should happen.

SOFTWARE/OS VERSIONS
digikam-6.2.0-git-20190722T062931-qtwebkit-x86-64.appimage in Ubuntu 18.04 LTS with Gnome.
Comment 1 Maik Qualmann 2019-07-27 13:07:42 UTC
This is normal behavior when automatically expanding / unexpanding nodes. Just hold on to the drag item and go up again -> node unexpand again. I will not change it, because I quite often use the automatic expand / unexpand when moving albums.

Maik
Comment 2 Maik Qualmann 2019-07-27 13:12:25 UTC
I looked again at the code, the auto expand delay is set to 800ms.

Maik
Comment 3 MarcP 2019-07-27 13:14:54 UTC
I believe we are not talking about the same thing. The node does not collapse or expand, it just vanishes from the list. The tag list does not reappear until I delete the search term and write it again.

And it only happens when there's a text in the search box, and when scrolling is needed, and the dragged tag isn't near the top of the list.
Comment 4 Maik Qualmann 2019-07-27 14:04:20 UTC
The text input at the bottom is not a search, but a filter. The moment you enter "Cuba" there, all other tags that do not contain the string should be hidden immediately. Here is already the problem. This fading out occurs later, so there is nothing left. Please test the filter function again and how long it will take to remove the elements.

Maik
Comment 5 MarcP 2019-07-27 14:22:40 UTC
No, the filter seems to work fine. Only words that contain that string ("Cuba" in the example) are displayed. Also tags that are nested inside, which I think it's the correct behavior.

Ok ok. I think you were right in the first place. It's a matter of the delay. I didn't know the root of the Tags (the folder-looking item called Tags) could also collapse and expand. Now I see that dragging over it also hides the rest of the tags, without needing to scroll or filter or anything. I guess that I inadvertently hovered over the "Tags" root and the whole tree collapsed, without knowing why. That's why it only happened to me when I "scrolled".

I guess that, just because the "Tags" item does not show expand and collapse arrows like the rest of the tags, I assumed it couldn't be collapsed and expanded. 

So now I am almost totally confident that this is not a bug. At most, it would be a usability thing.
Comment 6 Maik Qualmann 2019-07-28 11:16:50 UTC
Your screencast says something different. The word "Cuba" is in the filter edit field and is green, so active and the string is present. But I see that the tag names in the tree do not contain the string "Cuba" and should have disappeared long ago. Only later are the tags hidden...

Maik
Comment 7 MarcP 2019-07-28 11:39:19 UTC
If you look closely, all the tags that appear on the list either contain the string "cuba" or are subtags of the tag "Cuba" (which is at the top, but disappears before you can see it). I don't think there is any problem with the filter. 

But maybe the tags "collapse" too soon, before you can even see the top-level tag at the root.
Comment 8 caulier.gilles 2020-08-01 14:09:08 UTC
digiKam 7.0.0 stable release is now published and now available as FlatPak:

https://www.digikam.org/news/2020-07-19-7.0.0_release_announcement/

We need a fresh feedback on this file using this version.

Thanks in advance

Gilles Caulier
Comment 9 MarcP 2020-08-01 15:10:16 UTC
Well, as we discussed, this is not really a bug, but the way digikam autocollapses and autoexpands the root of the tag list, which may be confusing if you don't know what's happening.