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:
@@ -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"`
|
||||
|
||||
Reference in New Issue
Block a user