Removed Post Priority feature flag (#23735)

* Removed post priority feature flag

* linting

* Update feature_flags.go
Этот коммит содержится в:
Maria A Nunez
2023-07-07 11:42:57 -04:00
коммит произвёл GitHub
родитель 3f126905c5
Коммит 96d3e5864f
5 изменённых файлов: 4 добавлений и 9 удалений

Просмотреть файл

@@ -34,5 +34,5 @@ func (a *App) GetPriorityForPostList(list *model.PostList) (map[string]*model.Po
}
func (a *App) IsPostPriorityEnabled() bool {
return a.Config().FeatureFlags.PostPriority && *a.Config().ServiceSettings.PostPriority
return *a.Config().ServiceSettings.PostPriority
}

Просмотреть файл

@@ -2214,7 +2214,6 @@ func TestCountMentionsFromPost(t *testing.T) {
th.App.UpdateConfig(func(cfg *model.Config) {
*cfg.ServiceSettings.PostPriority = true
cfg.FeatureFlags.PostPriority = true
})
user1 := th.BasicUser

Просмотреть файл

@@ -214,7 +214,7 @@ func GenerateClientConfig(c *model.Config, telemetryID string, license *model.Li
props["EnableCustomGroups"] = strconv.FormatBool(*c.ServiceSettings.EnableCustomGroups)
}
if (license.SkuShortName == model.LicenseShortSkuProfessional || license.SkuShortName == model.LicenseShortSkuEnterprise) && c.FeatureFlags.PostPriority {
if license.SkuShortName == model.LicenseShortSkuProfessional || license.SkuShortName == model.LicenseShortSkuEnterprise {
props["PostAcknowledgements"] = "true"
}
}

Просмотреть файл

@@ -78,7 +78,6 @@ func (f *FeatureFlags) SetDefaults() {
f.InsightsEnabled = false
f.CommandPalette = false
f.CallsEnabled = true
f.PostPriority = true
f.PeopleProduct = false
f.DeprecateCloudFree = false
f.WysiwygEditor = false