MM-25723 Add an experimental setting for data prefetching (#14731)
* MM-25723 Add an experimental setting for data prefetching * Fix formatting * Fix bool error * Fix lint error * Change default to true
Этот коммит содержится в:
@@ -356,6 +356,7 @@ func (a *App) trackConfig() {
|
|||||||
"enable_svgs": *cfg.ServiceSettings.EnableSVGs,
|
"enable_svgs": *cfg.ServiceSettings.EnableSVGs,
|
||||||
"enable_latex": *cfg.ServiceSettings.EnableLatex,
|
"enable_latex": *cfg.ServiceSettings.EnableLatex,
|
||||||
"enable_opentracing": *cfg.ServiceSettings.EnableOpenTracing,
|
"enable_opentracing": *cfg.ServiceSettings.EnableOpenTracing,
|
||||||
|
"experimental_data_prefetch": *cfg.ServiceSettings.ExperimentalDataPrefetch,
|
||||||
})
|
})
|
||||||
|
|
||||||
a.SendDiagnostic(TRACK_CONFIG_TEAM, map[string]interface{}{
|
a.SendDiagnostic(TRACK_CONFIG_TEAM, map[string]interface{}{
|
||||||
|
|||||||
@@ -62,6 +62,8 @@ func GenerateClientConfig(c *model.Config, diagnosticID string, license *model.L
|
|||||||
props["ExperimentalEnableAutomaticReplies"] = strconv.FormatBool(*c.TeamSettings.ExperimentalEnableAutomaticReplies)
|
props["ExperimentalEnableAutomaticReplies"] = strconv.FormatBool(*c.TeamSettings.ExperimentalEnableAutomaticReplies)
|
||||||
props["ExperimentalTimezone"] = strconv.FormatBool(*c.DisplaySettings.ExperimentalTimezone)
|
props["ExperimentalTimezone"] = strconv.FormatBool(*c.DisplaySettings.ExperimentalTimezone)
|
||||||
|
|
||||||
|
props["ExperimentalDataPrefetch"] = strconv.FormatBool(*c.ServiceSettings.ExperimentalDataPrefetch)
|
||||||
|
|
||||||
props["SendEmailNotifications"] = strconv.FormatBool(*c.EmailSettings.SendEmailNotifications)
|
props["SendEmailNotifications"] = strconv.FormatBool(*c.EmailSettings.SendEmailNotifications)
|
||||||
props["SendPushNotifications"] = strconv.FormatBool(*c.EmailSettings.SendPushNotifications)
|
props["SendPushNotifications"] = strconv.FormatBool(*c.EmailSettings.SendPushNotifications)
|
||||||
props["RequireEmailVerification"] = strconv.FormatBool(*c.EmailSettings.RequireEmailVerification)
|
props["RequireEmailVerification"] = strconv.FormatBool(*c.EmailSettings.RequireEmailVerification)
|
||||||
|
|||||||
@@ -322,6 +322,7 @@ type ServiceSettings struct {
|
|||||||
ExperimentalGroupUnreadChannels *string
|
ExperimentalGroupUnreadChannels *string
|
||||||
ExperimentalChannelOrganization *bool
|
ExperimentalChannelOrganization *bool
|
||||||
ExperimentalChannelSidebarOrganization *string
|
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_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_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.
|
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")
|
s.ExperimentalChannelSidebarOrganization = NewString("disabled")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if s.ExperimentalDataPrefetch == nil {
|
||||||
|
s.ExperimentalDataPrefetch = NewBool(true)
|
||||||
|
}
|
||||||
|
|
||||||
if s.DEPRECATED_DO_NOT_USE_ImageProxyType == nil {
|
if s.DEPRECATED_DO_NOT_USE_ImageProxyType == nil {
|
||||||
s.DEPRECATED_DO_NOT_USE_ImageProxyType = NewString("")
|
s.DEPRECATED_DO_NOT_USE_ImageProxyType = NewString("")
|
||||||
}
|
}
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user