-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
collection: fix group filtering #2052
Conversation
Maybe I don't understand. But this is the expected behavior, no? You star the RAW then it not shown (filter unstarred only) and giving a start to a group leader (G active) will set one start to all picture in the group. So, I've not been able to reproduce or understand the issue here. |
@TurboGit After these steps I've mentioned you should see:
But group collapsing is still on (
Is it any clearer? |
@TurboGit |
To me, your code:
Is equivalent to:
Which is equivalent to:
And seems not correct. Or am I reading this wrongly? |
@TurboGit They are actually not equal. The following SELECT output is a table with two columns where each row is an image that has the lowest MIN() value calculated. Which basically means that in the So now we want to do an |
Ah ah! I failed to see that in the MIN() id is used. Indeed, sorry for the noise the select are not equivalents at all. I'll review again with this in mind. |
Looks ok to me. Thanks. |
The previous logic in lines 208-210 did not work as intended.
This is due to the
IN
selection not being specific for eachgroup_id
, which leads to cases where more than one image can be displayed pergroup_id
even when in "collapse groups" mode.Basically in this part of the query we want to ask for each image if the image has the lowest calculated min value (
MIN(ABS...)
) between other images with the samegroup_id
(that passed the filters).How to reproduce / test:
unstarred only
, and that the filtered images are divided as groups containing pairs of JPG + RAW images, with the RAW image being the representative of each group.If we are in collapsed group mode (
G
button is active), at this stage we expect to see a list containing only the RAW representatives.You might need to manually unstar the corresponding JPG as the new behavior star all the group members.
G
button is still active).I've built and tested release 2.6 including this change and got the original intended behavior.