From fda5b3d824418689bb6908198f3015148058ee8f Mon Sep 17 00:00:00 2001 From: midzelis Date: Sat, 6 Dec 2025 18:56:14 +0000 Subject: [PATCH] fix: canceling a bucket while findMonthGroupForAsset is waiting fails --- open-api/immich-openapi-specs.json | 110 ++---------------- .../timeline-manager.svelte.ts | 2 +- 2 files changed, 9 insertions(+), 103 deletions(-) diff --git a/open-api/immich-openapi-specs.json b/open-api/immich-openapi-specs.json index 7e859ffee0..fba6d2af80 100644 --- a/open-api/immich-openapi-specs.json +++ b/open-api/immich-openapi-specs.json @@ -8020,55 +8020,6 @@ "x-immich-state": "Alpha" } }, - "/plugins/triggers": { - "get": { - "description": "Retrieve a list of all available plugin triggers.", - "operationId": "getPluginTriggers", - "parameters": [], - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "items": { - "$ref": "#/components/schemas/PluginTriggerResponseDto" - }, - "type": "array" - } - } - }, - "description": "" - } - }, - "security": [ - { - "bearer": [] - }, - { - "cookie": [] - }, - { - "api_key": [] - } - ], - "summary": "List all plugin triggers", - "tags": [ - "Plugins" - ], - "x-immich-history": [ - { - "version": "v2.3.0", - "state": "Added" - }, - { - "version": "v2.3.0", - "state": "Alpha" - } - ], - "x-immich-permission": "plugin.read", - "x-immich-state": "Alpha" - } - }, "/plugins/{id}": { "get": { "description": "Retrieve information about a specific plugin by its ID.", @@ -10381,21 +10332,6 @@ "format": "uuid", "type": "string" } - }, - { - "name": "id", - "required": false, - "in": "query", - "x-immich-history": [ - { - "version": "v2.5.0", - "state": "Added" - } - ], - "schema": { - "format": "uuid", - "type": "string" - } } ], "responses": { @@ -18346,7 +18282,7 @@ }, "supportedContexts": { "items": { - "$ref": "#/components/schemas/PluginContextType" + "$ref": "#/components/schemas/PluginContext" }, "type": "array" }, @@ -18365,7 +18301,7 @@ ], "type": "object" }, - "PluginContextType": { + "PluginContext": { "enum": [ "asset", "album", @@ -18393,7 +18329,7 @@ }, "supportedContexts": { "items": { - "$ref": "#/components/schemas/PluginContextType" + "$ref": "#/components/schemas/PluginContext" }, "type": "array" }, @@ -18465,29 +18401,6 @@ ], "type": "object" }, - "PluginTriggerResponseDto": { - "properties": { - "contextType": { - "allOf": [ - { - "$ref": "#/components/schemas/PluginContextType" - } - ] - }, - "type": { - "allOf": [ - { - "$ref": "#/components/schemas/PluginTriggerType" - } - ] - } - }, - "required": [ - "contextType", - "type" - ], - "type": "object" - }, "PluginTriggerType": { "enum": [ "AssetCreate", @@ -23403,11 +23316,11 @@ "type": "string" }, "triggerType": { - "allOf": [ - { - "$ref": "#/components/schemas/PluginTriggerType" - } - ] + "enum": [ + "AssetCreate", + "PersonRecognized" + ], + "type": "string" } }, "required": [ @@ -23445,13 +23358,6 @@ }, "name": { "type": "string" - }, - "triggerType": { - "allOf": [ - { - "$ref": "#/components/schemas/PluginTriggerType" - } - ] } }, "type": "object" diff --git a/web/src/lib/managers/timeline-manager/timeline-manager.svelte.ts b/web/src/lib/managers/timeline-manager/timeline-manager.svelte.ts index b6c43480ef..b0dc30dc6e 100644 --- a/web/src/lib/managers/timeline-manager/timeline-manager.svelte.ts +++ b/web/src/lib/managers/timeline-manager/timeline-manager.svelte.ts @@ -346,7 +346,7 @@ export class TimelineManager extends VirtualScrollManager { async findMonthGroupForAsset(asset: AssetDescriptor | AssetResponseDto) { if (!this.isInitialized) { - await this.initTask.waitUntilCompletion(); + await this.initTask.waitUntilExecution(); } const { id } = asset;