change config name to self hosted expansion to follow suit with self hosted purchase.
Этот коммит содержится в:
@@ -385,7 +385,7 @@ type ServiceSettings struct {
|
|||||||
EnableCustomGroups *bool `access:"site_users_and_teams"`
|
EnableCustomGroups *bool `access:"site_users_and_teams"`
|
||||||
SelfHostedPurchase *bool `access:"write_restrictable,cloud_restrictable"`
|
SelfHostedPurchase *bool `access:"write_restrictable,cloud_restrictable"`
|
||||||
AllowSyncedDrafts *bool `access:"site_posts"`
|
AllowSyncedDrafts *bool `access:"site_posts"`
|
||||||
InProductExpansion *bool `access:"write_restrictable,cloud_restrictable"`
|
SelfHostedExpansion *bool `access:"write_restrictable,cloud_restrictable"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *ServiceSettings) SetDefaults(isUpdate bool) {
|
func (s *ServiceSettings) SetDefaults(isUpdate bool) {
|
||||||
@@ -859,8 +859,8 @@ func (s *ServiceSettings) SetDefaults(isUpdate bool) {
|
|||||||
s.SelfHostedPurchase = NewBool(true)
|
s.SelfHostedPurchase = NewBool(true)
|
||||||
}
|
}
|
||||||
|
|
||||||
if s.InProductExpansion == nil {
|
if s.SelfHostedExpansion == nil {
|
||||||
s.InProductExpansion = NewBool(false)
|
s.SelfHostedExpansion = NewBool(false)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -460,7 +460,7 @@ func (ts *TelemetryService) trackConfig() {
|
|||||||
"post_priority": *cfg.ServiceSettings.PostPriority,
|
"post_priority": *cfg.ServiceSettings.PostPriority,
|
||||||
"self_hosted_purchase": *cfg.ServiceSettings.SelfHostedPurchase,
|
"self_hosted_purchase": *cfg.ServiceSettings.SelfHostedPurchase,
|
||||||
"allow_synced_drafts": *cfg.ServiceSettings.AllowSyncedDrafts,
|
"allow_synced_drafts": *cfg.ServiceSettings.AllowSyncedDrafts,
|
||||||
"in_product_expansion": *cfg.ServiceSettings.InProductExpansion,
|
"self_hosted_expansion": *cfg.ServiceSettings.SelfHostedExpansion,
|
||||||
})
|
})
|
||||||
|
|
||||||
ts.SendTelemetry(TrackConfigTeam, map[string]any{
|
ts.SendTelemetry(TrackConfigTeam, map[string]any{
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user