From 221ed17fa27193086ec5c9201d48f7cd826e75a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Tue, 31 May 2022 14:58:09 +0200 Subject: [PATCH] OAPI: Allow explicit SocketIO subscription to "all jobs" When the web interface is showing the Workers list, it should no longer get updates about jobs. A new subscription type `allJobs` is added, and the `uuid` field of the subscription is no longer mandatory. --- pkg/api/flamenco-openapi.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/api/flamenco-openapi.yaml b/pkg/api/flamenco-openapi.yaml index bc846c9f..5779a047 100644 --- a/pkg/api/flamenco-openapi.yaml +++ b/pkg/api/flamenco-openapi.yaml @@ -1385,7 +1385,7 @@ components: type: string format: uuid description: UUID of the thing to subscribe to / unsubscribe from. - required: [op, type, uuid] + required: [op, type] SocketIOSubscriptionOperation: type: string @@ -1393,7 +1393,7 @@ components: SocketIOSubscriptionType: type: string - enum: [job, tasklog] + enum: [allJobs, job, tasklog] description: What kind of thing to subscribe to / unsubscribe from. # Worker Management