Bug 446347 - In advanced search the Album Filter does not include Sub-Albums (maybe Feature Request)
Summary: In advanced search the Album Filter does not include Sub-Albums (maybe Featur...
Status: RESOLVED WORKSFORME
Alias: None
Product: digikam
Classification: Applications
Component: Searches-Advanced (show other bugs)
Version: 7.4.0
Platform: macOS (DMG) macOS
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-01 22:15 UTC by Tom
Modified: 2022-01-02 08:15 UTC (History)
2 users (show)

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


Attachments
Screenshot showing selection of parent Album (276.58 KB, image/png)
2021-12-01 22:15 UTC, Tom
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tom 2021-12-01 22:15:53 UTC
Created attachment 144130 [details]
Screenshot showing selection of parent Album

Advanced search filter for "File, Album, Tags" -> Album searches only in "root Folder" of selected Album, but not in Sub-Albums.
E.g. with this Album Structure:
- xNef
	- 2016 12
	- 2017 02	

Selecting xNef as "Search items located in" the search result will only include pictures in xNef, but not from the sub-albums 2016 12 or 2017 02.

STEPS TO REPRODUCE
1. select Search from left hand pane
2. Advanced Search
3. Clear all existing Filters (if any)
4. In Section "File, Album, Tags" select in "Album" "Search items located in" a specific Album which has a substructure
5. Press "Try"


OBSERVED RESULT
Sub-Albums are excluded from the search.

EXPECTED RESULT
All Sub-Albums are included in the search
This would allow an easier filtering of pictures in structures. Instead of having to select every single "Sub-Album" only the root Album needs to be selected. Especially when a search is saved and new items are added to the sub-structure one always has to remember to update the saved searches.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Maik Qualmann 2021-12-01 22:22:13 UTC
Tom, this problem has been reported 1000 times by new users. The behavior is by design; only selected albums are searched. There is a context menu on the right mouse button and choose that children's albums should also be selected.

Maik
Comment 2 Maik Qualmann 2021-12-01 22:23:40 UTC
This behavior is the same in all album selectors, including face detection.

Maik
Comment 3 Tom 2021-12-01 22:29:13 UTC
(In reply to Maik Qualmann from comment #1)
> Tom, this problem has been reported 1000 times by new users. The behavior is
> by design; only selected albums are searched. There is a context menu on the
> right mouse button and choose that children's albums should also be selected.
> 
> Maik

Thanks for the quick reply and sorry for bugging.
One thought: If this was reports so often already, maybe an small hint-text / pop-up text would be helpfull to avoid the bug reports.
Best, Tom
Comment 4 Maik Qualmann 2021-12-01 22:37:22 UTC
I am also surprised that there is always a communication problem here. All albums have a checkbox, it is clear to me that only albums with a tick are used.

Maik
Comment 5 Tom 2021-12-01 22:49:46 UTC
(In reply to Maik Qualmann from comment #4)
> I am also surprised that there is always a communication problem here. All
> albums have a checkbox, it is clear to me that only albums with a tick are
> used.
> 
> Maik

I love using the advanced search and I understand the way the team has set it up now.
I use it e.g. to have a saved search for all pictures of 2021 which a 3+ star rating. The current setup is "static", meaning the included subfolders are statically saved with the advanced search. If new subfolders are added in 2021 after the advanced search was saved, they are not included. 
There it would be a nice improvement for the usability if there was an option to "include sub-Albums" (... Feature Request). 
Thanks anyhow , Best Tom