Merge pull request #22421 from mattermost/MM-51019-add-feature-flag-for-in-product-expansion
* Add SelfHostedExpansion config/ff.
Этот коммит содержится в:
@@ -385,6 +385,7 @@ type ServiceSettings struct {
|
||||
EnableCustomGroups *bool `access:"site_users_and_teams"`
|
||||
SelfHostedPurchase *bool `access:"write_restrictable,cloud_restrictable"`
|
||||
AllowSyncedDrafts *bool `access:"site_posts"`
|
||||
SelfHostedExpansion *bool `access:"write_restrictable,cloud_restrictable"`
|
||||
}
|
||||
|
||||
func (s *ServiceSettings) SetDefaults(isUpdate bool) {
|
||||
@@ -857,6 +858,10 @@ func (s *ServiceSettings) SetDefaults(isUpdate bool) {
|
||||
if s.SelfHostedPurchase == nil {
|
||||
s.SelfHostedPurchase = NewBool(true)
|
||||
}
|
||||
|
||||
if s.SelfHostedExpansion == nil {
|
||||
s.SelfHostedExpansion = NewBool(false)
|
||||
}
|
||||
}
|
||||
|
||||
type ClusterSettings struct {
|
||||
|
||||
@@ -460,6 +460,7 @@ func (ts *TelemetryService) trackConfig() {
|
||||
"post_priority": *cfg.ServiceSettings.PostPriority,
|
||||
"self_hosted_purchase": *cfg.ServiceSettings.SelfHostedPurchase,
|
||||
"allow_synced_drafts": *cfg.ServiceSettings.AllowSyncedDrafts,
|
||||
"self_hosted_expansion": *cfg.ServiceSettings.SelfHostedExpansion,
|
||||
})
|
||||
|
||||
ts.SendTelemetry(TrackConfigTeam, map[string]any{
|
||||
|
||||
Ссылка в новой задаче
Block a user