From 68e1ad80acb28fe07a6c218cecd960141dc50c5c Mon Sep 17 00:00:00 2001 From: jochen Date: Wed, 21 Oct 2026 15:19:03 +0200 Subject: [PATCH] Declare the seat document-converter in only-office's seats (issue 1595) --- modules/only-office/cmd/only-office/convert_test.go | 5 +++++ modules/only-office/module.json | 9 +++++++++ 2 files changed, 14 insertions(+) diff --git a/modules/only-office/cmd/only-office/convert_test.go b/modules/only-office/cmd/only-office/convert_test.go index 4c72e180..2a57475d 100644 --- a/modules/only-office/cmd/only-office/convert_test.go +++ b/modules/only-office/cmd/only-office/convert_test.go @@ -148,6 +148,11 @@ func manifest(t *testing.T) map[string]any { // work queue and the state convert-answers (the shape of brother's device-asks and device-answers). func TestManifestClaimsTheSeat(t *testing.T) { m := manifest(t) + seats, _ := m["seats"].([]any) + if len(seats) != 1 || seats[0].(map[string]any)["name"] != "document-converter" || seats[0].(map[string]any)["scope"] != "mesh" || + len(seats[0].(map[string]any)["serves"].([]any)) != 1 || seats[0].(map[string]any)["serves"].([]any)[0] != "convert" { + t.Fatalf("the seat document-converter is not declared in seats (the mesh defines no seat a module does not declare): %v", seats) + } claims := m["claims"].([]any) c := claims[0].(map[string]any) if len(claims) != 1 || c["name"] != "document-converter" || c["scope"] != "mesh" || diff --git a/modules/only-office/module.json b/modules/only-office/module.json index 2c5e6ca6..03ed3cc0 100644 --- a/modules/only-office/module.json +++ b/modules/only-office/module.json @@ -14,6 +14,15 @@ "endpoint": "web" } }, + "seats": [ + { + "name": "document-converter", + "scope": "mesh", + "serves": [ + "convert" + ] + } + ], "claims": [ { "name": "document-converter",