summaryrefslogtreecommitdiffstats
path: root/app/diagnostics.go
diff options
context:
space:
mode:
authorChris Duarte <csduarte@users.noreply.github.com>2017-08-28 09:22:54 -0700
committerHarrison Healey <harrisonmhealey@gmail.com>2017-08-28 12:22:54 -0400
commit510b1a18f5282981a70503c0cde474e121c9e651 (patch)
tree2d72de9607f55ab21e60ba92c604fee4961be3f0 /app/diagnostics.go
parent9e95af7809f3f19f9b53c4a1e875672db5c4eb63 (diff)
downloadchat-510b1a18f5282981a70503c0cde474e121c9e651.tar.gz
chat-510b1a18f5282981a70503c0cde474e121c9e651.tar.bz2
chat-510b1a18f5282981a70503c0cde474e121c9e651.zip
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.
Diffstat (limited to 'app/diagnostics.go')
-rw-r--r--app/diagnostics.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/app/diagnostics.go b/app/diagnostics.go
index 1df5b1feb..9946ce9f1 100644
--- a/app/diagnostics.go
+++ b/app/diagnostics.go
@@ -19,6 +19,7 @@ const (
TRACK_CONFIG_SERVICE = "config_service"
TRACK_CONFIG_TEAM = "config_team"
+ TRACK_CONFIG_CLIENT_REQ = "config_client_requirements"
TRACK_CONFIG_SQL = "config_sql"
TRACK_CONFIG_LOG = "config_log"
TRACK_CONFIG_FILE = "config_file"
@@ -244,6 +245,15 @@ func trackConfig() {
"restrict_private_channel_manage_members": *utils.Cfg.TeamSettings.RestrictPrivateChannelManageMembers,
})
+ SendDiagnostic(TRACK_CONFIG_CLIENT_REQ, map[string]interface{}{
+ "android_latest_version": utils.Cfg.ClientRequirements.AndroidLatestVersion,
+ "android_min_version": utils.Cfg.ClientRequirements.AndroidMinVersion,
+ "desktop_latest_version": utils.Cfg.ClientRequirements.DesktopLatestVersion,
+ "desktop_min_version": utils.Cfg.ClientRequirements.DesktopMinVersion,
+ "ios_latest_version": utils.Cfg.ClientRequirements.IosLatestVersion,
+ "ios_min_version": utils.Cfg.ClientRequirements.IosMinVersion,
+ })
+
SendDiagnostic(TRACK_CONFIG_SQL, map[string]interface{}{
"driver_name": utils.Cfg.SqlSettings.DriverName,
"trace": utils.Cfg.SqlSettings.Trace,