immich-app/immich

[BUG] Stacks not removed on Library deletion

Open

#16,151 opened on Feb 17, 2025

View on GitHub
 (3 comments) (3 reactions) (0 assignees)TypeScript (5,601 forks)batch import
external-librarygood first issue

Repository metrics

Stars
 (100,600 stars)
PR merge metrics
 (Avg merge 5d 3h) (258 merged PRs in 30d)

Description

The bug

Problem Description When deleting an External Library, a Stack that contains photos from this External Library will not be unstacked. The Stack stays with the cover photo in the library. Manual unstacking is needed, so that the stack will be removed from the Timeline.

Expected Behavior If a Stack contains only photos from one External Library AND this External Library will be deleted, also unstack/delete the stack. If a Stack contains photos from various External Library but only one External Library will be deleted, keep the stack with remaining photos

The OS that Immich Server is running on

AlmaLinux release 9.5 (Teal Serval)

Version of Immich Server

v1.126.1

Version of Immich Mobile App

v1.126.1 build.194

Platform with the issue

  • Server
  • Web
  • Mobile

Your docker-compose.yml content

- not relevant for bug

Your .env content

- not relevant for bug

Reproduction steps

  1. Add an External Library with 2 or more photos
  2. Stack Photos from this External Library (2 or more) in Timeline
  3. Delete the External Library in Admin menu
  4. Return to Timeline and find the stack still being there, but with one Photo
  5. Manually unstack the stack so that it will be removed from the Timeline ...

Relevant log output

Additional information

No response

Contributor guide