Whitelabelling: Override version in UI from config (#84392)

* Unify how the version is shown in the UI

* use versionString in dashboard help bundles

* fix lint

* remove comment

* fix test types

* make test less flakey
This commit is contained in:
Josh Hunt
2024-03-15 18:39:13 +02:00
committed by GitHub
parent 1ce2ae427f
commit f2628bfad4
11 changed files with 44 additions and 26 deletions
+9 -2
View File
@@ -35,9 +35,16 @@ type FrontendSettingsAuthDTO struct {
}
type FrontendSettingsBuildInfoDTO struct {
HideVersion bool `json:"hideVersion"`
Version string `json:"version"`
HideVersion bool `json:"hideVersion"`
// A semver-ish version string, such as "11.0.0-12345"
Version string `json:"version"`
// A branded version string to show in the UI, such as "Grafana v11.0.0-12345"
VersionString string `json:"versionString,omitempty"`
Commit string `json:"commit"`
CommitShort string `json:"commitShort"`
Buildstamp int64 `json:"buildstamp"`
Edition string `json:"edition"`
LatestVersion string `json:"latestVersion"`