mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Removed Post Priority feature flag (#23735)
* Removed post priority feature flag * linting * Update feature_flags.go
This commit is contained in:
parent
3f126905c5
commit
96d3e5864f
@ -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
|
||||
|
@ -7,7 +7,7 @@ import {createSelector} from 'mattermost-redux/selectors/create_selector';
|
||||
import {getCurrentUser} from 'mattermost-redux/selectors/entities/common';
|
||||
import {getMyPreferences} from 'mattermost-redux/selectors/entities/preferences';
|
||||
import {getUsers, getCurrentUserId, getUserStatuses} from 'mattermost-redux/selectors/entities/users';
|
||||
import {getConfig, getFeatureFlagValue} from 'mattermost-redux/selectors/entities/general';
|
||||
import {getConfig} from 'mattermost-redux/selectors/entities/general';
|
||||
import {getChannel} from 'mattermost-redux/selectors/entities/channels';
|
||||
import {getCurrentTeamId} from 'mattermost-redux/selectors/entities/teams';
|
||||
|
||||
@ -765,10 +765,7 @@ export function getLimitedViews(state: GlobalState): GlobalState['entities']['po
|
||||
}
|
||||
|
||||
export function isPostPriorityEnabled(state: GlobalState) {
|
||||
return (
|
||||
getFeatureFlagValue(state, 'PostPriority') === 'true' &&
|
||||
getConfig(state).PostPriority === 'true'
|
||||
);
|
||||
return getConfig(state).PostPriority === 'true';
|
||||
}
|
||||
|
||||
export function isPostAcknowledgementsEnabled(state: GlobalState) {
|
||||
|
Loading…
Reference in New Issue
Block a user