Skip to content
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

Item with no bookmarks are not filtered properly after deleting a bookmark (master only) #2311

Closed
wladimirleite opened this issue Aug 26, 2024 · 4 comments · Fixed by #2312
Closed
Assignees
Labels

Comments

@wladimirleite
Copy link
Member

Detected while working on a real case. It seems a critical issue, as I almost missed important items because of it.
I was able to reproduce in a small test case with the following steps.

  1. Process a folder with 10 images.
  2. Create a bookmark "A" with 5 of them.
  3. Create a bookmark "B" with the other 5.
  4. Delete bookmark "B".
  5. Select "No bookmarks" filter. It should list 5 items (that were previously in bookmark "B"), but non images are shown.

After reopening the case it works.
It may be related to #2251.

After step 3:
image

After step 4:
image

After step 5:
image

@lfcnassif
Copy link
Member

@patrickdalla, maybe this regression was caused by the bookmarks refactoring to use RoaringBitmaps, could you take a look?

@patrickdalla
Copy link
Collaborator

patrickdalla commented Aug 26, 2024 via email

@patrickdalla
Copy link
Collaborator

The problem was with internal union bitmap cache that wasn't being invalidate (and updated) after the deletion.
@wladimirleite , check if comit in PR 2312 (brach BookmarkCacheInvalidation) to check if the issue was solved.

@wladimirleite
Copy link
Member Author

Just tested it, and the issue is gone.
Thanks @patrickdalla!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants