Bug 158484

Summary: SCHEMA : add album filter settings saved to database
Product: [Applications] digikam Reporter: Jan Ziehm <janziehm>
Component: Database-SchemaAssignee: Digikam Developers <digikam-bugs-null>
Status: REPORTED ---    
Severity: wishlist CC: anna, caulier.gilles, chentaocredungtao, iwannaberich, jdemeulle.photo, julien.t43+kde, kde-bugs, kde_bugs, marcel.wiesweg, philippe.roubach, qrczakoff, th0ma7
Priority: HI    
Version: 0.9.3   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Saving Filters UI mockup

Description Jan Ziehm 2008-02-26 23:54:59 UTC
Version:           0.9.3 (using 3.5.8, Debian Package 4:3.5.8.dfsg.1-7 (lenny/sid))
Compiler:          Target: i486-linux-gnu
OS:                Linux (i686) release 2.6.24-2.6.24.2.slh.11-sidux-686

I would like to keep the settings of the image quickfilter fixed for albums where I have many jpegs as well as cr2 files, but would only like to display jpegs. Is there a general option to quickly turn the display of certain file formats on and off and save those settings so they will be remembered when I reopen the application?
Comment 1 caulier.gilles 2008-02-27 05:43:55 UTC
Marcel, 

this entry is relevant of a new setting from DB. this is dedicaced to KDE4 of course...

Are you agree to add a new DB field to store icon view filter settings in DB ?

Gilles
Comment 2 caulier.gilles 2008-03-28 10:34:21 UTC
Marcel,

Are you seen my comment #1? 

Gilles Caulier
Comment 3 Marcel Wiesweg 2008-03-29 18:11:02 UTC
If we store this in the DB, it means the setting is "global", i.e. if there should be multiple users per DB some day, the setting would apply for all of them.
I am not sure if this quality applies to such settings; if you think so, we can store it in the DB (in the settings table?)
In the other case, we can store this in the usual KConfig settings just as well.
Comment 4 Arnd Baecker 2008-03-29 19:23:10 UTC
To me this sounds more like a per-user, view option, nothing which
should go into the data-base.
On the other hand this would mean to store such a list of albums
with their settings in the configuration file. Is this a feasible approach?
Comment 5 caulier.gilles 2008-03-29 19:26:19 UTC
Good question Marcel...

But storing filter setting by album will take place on config file especially with huge collection.

Also, loading this settings will take a while at startup...

Mik, Gerhard, Arnd, Fabien, your viewpoint is welcome here.

Gilles
Comment 6 Mikolaj Machowski 2008-03-29 22:29:31 UTC
> Mik,


This is definitely "per user" setting so not place in base as Marcel
said. It it means performance hit - scrap it. Sorry but this setting can
be done quickly in interface so such trade off is a big no, no.

OTOH this is reasonable wish. Maybe mark it as LATER - if there will be
made space by performance gains in other areas implement it?
Comment 7 caulier.gilles 2011-02-16 13:27:03 UTC
*** Bug 216276 has been marked as a duplicate of this bug. ***
Comment 8 caulier.gilles 2011-12-14 16:54:42 UTC
*** Bug 148996 has been marked as a duplicate of this bug. ***
Comment 9 caulier.gilles 2014-08-22 15:14:44 UTC
*** Bug 334671 has been marked as a duplicate of this bug. ***
Comment 10 caulier.gilles 2014-08-22 15:15:12 UTC
*** Bug 297289 has been marked as a duplicate of this bug. ***
Comment 11 caulier.gilles 2014-08-24 08:41:50 UTC
*** Bug 312683 has been marked as a duplicate of this bug. ***
Comment 12 caulier.gilles 2015-07-19 13:14:42 UTC
*** Bug 350373 has been marked as a duplicate of this bug. ***
Comment 13 Anna Timm 2015-07-19 18:04:40 UTC
Ah, sorry for the duplicate. I actually searched for "save filter" and nothing came up, odd.

Anyway, is it really necessary to save it "per album"? I guess just a quick and easy way to save and load filter settings will get the job done in a similar manner?

Copy-Pasta of my suggestion:  At the very top of the filters sidebar could be a text-input for a name, next to it a save button. Below a dropdown list with all saved filters, the default display could re d "load a saved filter" or "no saved filters". When loading one, the name should appear in the name input field above, so changes can be saved quickly or variations can be saved with only adding a letter/number to the original name.
This way there is not too much space wasted.

Well, this means a two-click operation every time one want's to load an album with a filter... Sorry, I have no idea about programming, but maybe this is also a better solution in case there are performance issues with the per-album-setting: instead of saving all filter settings per album, just save a reference to a saved filter...
Comment 14 Anna Timm 2015-07-19 18:28:05 UTC
Created attachment 93652 [details]
Saving Filters UI mockup

Saving filters and setting a filter per album, from a pure UI perspective. I think something like this would be quick and easy to use.
Comment 15 Ritesh Raj Sarraf 2017-05-11 02:58:22 UTC
Calibre (written in PyQt) has this feature implemented. Perhaps mockups and implementation ideas could be taken from there.
Comment 16 MarcP 2018-03-07 18:37:43 UTC
I am also very interested in this feature.
Comment 17 Chentao 2020-05-23 14:51:42 UTC
+1
It sure would be great to have this feature
Comment 18 Maik Qualmann 2024-08-25 14:11:29 UTC
*** Bug 492165 has been marked as a duplicate of this bug. ***