immich-app/immich

[BUG] Stacks not removed on Library deletion

Open

#16,151 创建于 2025年2月17日

在 GitHub 查看
 (3 评论) (3 反应) (0 负责人)TypeScript (5,601 fork)batch import
external-librarygood first issue

仓库指标

Star
 (100,600 star)
PR 合并指标
 (平均合并 5天 3小时) (30 天内合并 258 个 PR)

描述

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

贡献者指南