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

Galleries not re-indexed after image hide #316

Open
mdashlw opened this issue Jul 1, 2024 · 0 comments
Open

Galleries not re-indexed after image hide #316

mdashlw opened this issue Jul 1, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@mdashlw
Copy link
Contributor

mdashlw commented Jul 1, 2024

Philomena.Images#hide_image_multi (used when image is deleted or hidden due to merge) decrements image_count of all relevant galleries and deletes all relevant Philomena.Galleries.Interactions, however, it doesn't queue a re-index of these galleries, causing the following indexed fields to be out of sync:

image_count: gallery.image_count,
image_ids: Enum.map(gallery.interactions, & &1.image_id),
@mdashlw mdashlw added the bug Something isn't working label Jul 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant