Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add productversion also to ocs.version #2889

Merged
merged 1 commit into from
May 23, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog/unreleased/version-fixes.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ Bugfix: Fix version number in status page
We needed to undo the version number changes on the status page to keep compatibility for legacy clients. We added a new field `productversion` for the actual version of the product.

https://github.com/cs3org/reva/pull/2876
https://github.com/cs3org/reva/pull/2889
13 changes: 7 additions & 6 deletions internal/http/services/owncloud/ocs/data/capabilities.go
Original file line number Diff line number Diff line change
Expand Up @@ -224,10 +224,11 @@ type CapabilitiesNotifications struct {

// Version holds version information
type Version struct {
Major int `json:"major" xml:"major"`
Minor int `json:"minor" xml:"minor"`
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"`
Major int `json:"major" xml:"major"`
Minor int `json:"minor" xml:"minor"`
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"`
ProductVersion string `json:"productversion" xml:"productversion"`
}
Original file line number Diff line number Diff line change
Expand Up @@ -214,12 +214,13 @@ func (h *Handler) Init(c *config.Config) {
if h.c.Version == nil {
h.c.Version = &data.Version{
// TODO get from build env
Major: 10,
Minor: 0,
Micro: 11,
String: "10.0.11",
Edition: "community",
Product: "reva",
Major: 10,
Minor: 0,
Micro: 11,
String: "10.0.11",
Edition: "community",
Product: "reva",
ProductVersion: "",
}
}

Expand Down