Describe the bug
un-altered select does nothing
To Reproduce
Expected behavior
Un-alterred pictures should be selected
Platform (please complete the following information):
Additional context
@phweyland : I suspect an issue with the new hash computation maybe ?
Needs investigation here: https://github.com/darktable-org/darktable/blob/48850e8e6feb15729451a8fba7f64cf4a24e9f60/src/common/selection.c#L354-L386
probably needs better query handling.
Can't check the suspicious code but don't we need mutex protection of the database here?
If it's needed here it's needed in loads of places ;) I'd propose also a transaction :)
Ok, now I'm not even sure this has been working at some point. The unaltered means in current code no history at all:
else if(collection->params.filter_flags & COLLECTION_FILTER_UNALTERED)
wq = dt_util_dstrcat(wq, " %s id NOT IN (SELECT imgid FROM main.history WHERE imgid=mi.id)", and_operator(&and_term));
With no-embedded jpeg this has certainly never worked.
It would probably better to reuse the altered status.
I'm probably mistaken, but wasn't this the consequence of a long discussion of what should be declared "altered"? Ie any image that has been opened was one of the proposals... so that "altered" really meant "has been looked at and been demosaiced".
But my memory is unreliable...
long discussion of what should be declared "altered"?
Currently, as implemented in collect/history and on thumbnails(symbol), we have 3 cases:
For thumbnails, basic and auto apply as seen as not altered. A specific symbol for auto apply could make sense.
In terms of select module "select unaltered" the meaning should be "without manual change" (I think)
for thumbnails: yeah, the icon could be beneficial :)
//EDIT: thanks @phweyland ! good spot!
In terms of select module "select unaltered" the meaning should be "manual change" (I think)
You may have wanted to say: "without manual change"
Most helpful comment
Currently, as implemented in collect/history and on thumbnails(symbol), we have 3 cases:
For thumbnails, basic and auto apply as seen as not altered. A specific symbol for auto apply could make sense.