From 890ae4d4f0512f463418d0a4aaa0c6b8307576e4 Mon Sep 17 00:00:00 2001 From: Benedikt Kulmann Date: Thu, 23 Dec 2021 17:02:39 +0100 Subject: [PATCH] Add product to ocs Version struct The web ui will announce the backend version in the javascript console and is supposed to include the product name as well. The version seems to be a good location for the product field as it already includes the software edition as well. --- .../unreleased/enhancement-product-field-in-ocs-version.md | 5 +++++ internal/http/services/owncloud/ocs/data/capabilities.go | 1 + 2 files changed, 6 insertions(+) create mode 100644 changelog/unreleased/enhancement-product-field-in-ocs-version.md diff --git a/changelog/unreleased/enhancement-product-field-in-ocs-version.md b/changelog/unreleased/enhancement-product-field-in-ocs-version.md new file mode 100644 index 0000000000..a897200697 --- /dev/null +++ b/changelog/unreleased/enhancement-product-field-in-ocs-version.md @@ -0,0 +1,5 @@ +Enhancement: Product field in OCS version + +We've added a new field to the OCS Version, which is supposed to announce the product name. The web ui as a client will make use of it to make the backend product and version available (e.g. for easier bug reports). + +https://github.com/cs3org/reva/pull/2397 diff --git a/internal/http/services/owncloud/ocs/data/capabilities.go b/internal/http/services/owncloud/ocs/data/capabilities.go index 81ee4e3320..609f7a2979 100644 --- a/internal/http/services/owncloud/ocs/data/capabilities.go +++ b/internal/http/services/owncloud/ocs/data/capabilities.go @@ -224,4 +224,5 @@ type Version struct { Micro int `json:"micro" xml:"micro"` // = patch level String string `json:"string" xml:"string"` Edition string `json:"edition" xml:"edition"` + Product string `json:"product" xml:"product"` }