Manage version configurations client versions (#7220)
* Add config values for client versions. Return client versions in ping response. * Manage client version through System Console. * Added client versions to diagnostics * Added translations messages en.json file. * Hide Client Versions on System Console.
Этот коммит содержится в:
коммит произвёл
Harrison Healey
родитель
9e95af7809
Коммит
510b1a18f5
@@ -351,6 +351,15 @@ type TeamSettings struct {
|
||||
TeammateNameDisplay *string
|
||||
}
|
||||
|
||||
type ClientRequirements struct {
|
||||
AndroidLatestVersion string
|
||||
AndroidMinVersion string
|
||||
DesktopLatestVersion string
|
||||
DesktopMinVersion string
|
||||
IosLatestVersion string
|
||||
IosMinVersion string
|
||||
}
|
||||
|
||||
type LdapSettings struct {
|
||||
// Basic
|
||||
Enable *bool
|
||||
@@ -469,6 +478,7 @@ type PluginSettings struct {
|
||||
type Config struct {
|
||||
ServiceSettings ServiceSettings
|
||||
TeamSettings TeamSettings
|
||||
ClientRequirements ClientRequirements
|
||||
SqlSettings SqlSettings
|
||||
LogSettings LogSettings
|
||||
PasswordSettings PasswordSettings
|
||||
@@ -518,6 +528,10 @@ func (o *Config) GetSSOService(service string) *SSOSettings {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (o *Config) getClientRequirementsFromConfig() ClientRequirements {
|
||||
return o.ClientRequirements
|
||||
}
|
||||
|
||||
func ConfigFromJson(data io.Reader) *Config {
|
||||
decoder := json.NewDecoder(data)
|
||||
var o Config
|
||||
|
||||
Ссылка в новой задаче
Block a user