Commit c36f351e authored by Martin Wortschack's avatar Martin Wortschack

Merge branch '214382-remove-project_list_show_issue_count-feature-flag' into 'master'

Remove project_list_show_issue_count feature flag

See merge request gitlab-org/gitlab!31793
parents eda637fb a874ac5a
......@@ -299,7 +299,7 @@ module ProjectsHelper
end
def show_issue_count?(disabled: false, compact_mode: false)
!disabled && !compact_mode && Feature.enabled?(:project_list_show_issue_count, default_enabled: true)
!disabled && !compact_mode
end
# overridden in EE
......
---
title: Remove project_list_show_issue_count feature flag.
merge_request: 31793
author: Gilang Gumilar
type: removed
......@@ -741,11 +741,7 @@ describe ProjectsHelper do
end
describe '#show_issue_count?' do
context 'when the feature flag is enabled' do
before do
stub_feature_flags(project_list_show_issue_count: true)
end
context 'enabled flag' do
it 'returns true if compact mode is disabled' do
expect(helper.show_issue_count?).to be_truthy
end
......@@ -755,22 +751,7 @@ describe ProjectsHelper do
end
end
context 'when the feature flag is disabled' do
before do
stub_feature_flags(project_list_show_issue_count: false)
end
it 'always returns false' do
expect(helper.show_issue_count?(disabled: false)).to be_falsy
expect(helper.show_issue_count?(disabled: true)).to be_falsy
end
end
context 'disabled flag' do
before do
stub_feature_flags(project_list_show_issue_count: true)
end
it 'returns false if disabled flag is true' do
expect(helper.show_issue_count?(disabled: true)).to be_falsey
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment