diff --git a/app/diagnostics.go b/app/diagnostics.go index 82a9f169b5..3e8a6251a0 100644 --- a/app/diagnostics.go +++ b/app/diagnostics.go @@ -356,6 +356,7 @@ func (a *App) trackConfig() { "enable_svgs": *cfg.ServiceSettings.EnableSVGs, "enable_latex": *cfg.ServiceSettings.EnableLatex, "enable_opentracing": *cfg.ServiceSettings.EnableOpenTracing, + "experimental_data_prefetch": *cfg.ServiceSettings.ExperimentalDataPrefetch, }) a.SendDiagnostic(TRACK_CONFIG_TEAM, map[string]interface{}{ diff --git a/config/client.go b/config/client.go index 2348cc28f7..73a2446186 100644 --- a/config/client.go +++ b/config/client.go @@ -62,6 +62,8 @@ func GenerateClientConfig(c *model.Config, diagnosticID string, license *model.L props["ExperimentalEnableAutomaticReplies"] = strconv.FormatBool(*c.TeamSettings.ExperimentalEnableAutomaticReplies) props["ExperimentalTimezone"] = strconv.FormatBool(*c.DisplaySettings.ExperimentalTimezone) + props["ExperimentalDataPrefetch"] = strconv.FormatBool(*c.ServiceSettings.ExperimentalDataPrefetch) + props["SendEmailNotifications"] = strconv.FormatBool(*c.EmailSettings.SendEmailNotifications) props["SendPushNotifications"] = strconv.FormatBool(*c.EmailSettings.SendPushNotifications) props["RequireEmailVerification"] = strconv.FormatBool(*c.EmailSettings.RequireEmailVerification) diff --git a/model/config.go b/model/config.go index 3f82f76f06..9cc8cdf065 100644 --- a/model/config.go +++ b/model/config.go @@ -322,6 +322,7 @@ type ServiceSettings struct { ExperimentalGroupUnreadChannels *string ExperimentalChannelOrganization *bool ExperimentalChannelSidebarOrganization *string + ExperimentalDataPrefetch *bool DEPRECATED_DO_NOT_USE_ImageProxyType *string `json:"ImageProxyType" mapstructure:"ImageProxyType"` // This field is deprecated and must not be used. DEPRECATED_DO_NOT_USE_ImageProxyURL *string `json:"ImageProxyURL" mapstructure:"ImageProxyURL"` // This field is deprecated and must not be used. DEPRECATED_DO_NOT_USE_ImageProxyOptions *string `json:"ImageProxyOptions" mapstructure:"ImageProxyOptions"` // This field is deprecated and must not be used. @@ -678,6 +679,10 @@ func (s *ServiceSettings) SetDefaults(isUpdate bool) { s.ExperimentalChannelSidebarOrganization = NewString("disabled") } + if s.ExperimentalDataPrefetch == nil { + s.ExperimentalDataPrefetch = NewBool(true) + } + if s.DEPRECATED_DO_NOT_USE_ImageProxyType == nil { s.DEPRECATED_DO_NOT_USE_ImageProxyType = NewString("") }