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

fix(web): asset disappears from album after metadata edit #7520

Merged
merged 1 commit into from Feb 29, 2024

Conversation

michelheusschen
Copy link
Contributor

When you open an asset in an album, change some metadata and then go back, the asset disappears. In UpdatePanel the asset gets removed and re-added, but AssetStore.removeAsset fails to properly clean up references, causing AssetStore.addAsset to do nothing and the asset disappears.

Changes to resolve the issue:

  • Integrate AssetPanel into the asset store
  • Recalculate buckets when asset.fileCreatedAt changes
  • Clean up all references to deleted assets

Fixes #5948

Copy link

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 0600642
Status: ✅  Deploy successful!
Preview URL: https://1a6faece.immich.pages.dev
Branch Preview URL: https://fix-web-album-asset-disappea.immich.pages.dev

View logs

Copy link
Contributor

@jrasm91 jrasm91 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@alextran1502 alextran1502 merged commit 369acc7 into main Feb 29, 2024
26 checks passed
@alextran1502 alextran1502 deleted the fix/web-album-asset-disappears branch February 29, 2024 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] web: asset temporary hidden in the album after editing metadata
3 participants