immich-go icon indicating copy to clipboard operation
immich-go copied to clipboard

Creating stacks by updating the stacked assets is no longer supported

Open m-georgi opened this issue 5 months ago • 2 comments

Up to version 0.112 of immich it was possible to create stacks by updating the stacked assets using the /assets endpoint and providing a stackParendId of the asset that should be used as the stack cover.

Starting with 0.113 this field is no longer listed in the API description for updateAsset. Instead the API offers createStack to do this explicitly.

I opened a PR #477 that changes the implementation to use the new API call.

Unfortunately it seems that multiple stacks can be created for the same assets by repeating the same call with the same asset IDs. The returned stack response has a new stack ID each time.

I'm not sure whether this is problematic, but it might be best to check for existing stacks (using searchStacks) first, and only create stacks if none exists yet. This is not yet implemented in my PR.

m-georgi avatar Sep 07 '24 11:09 m-georgi