Commit a874ac5a authored by Gilang Gumilar's avatar Gilang Gumilar Committed by Martin Wortschack

Remove project_list_show_issue_count feature flag

parent 614305ed
...@@ -299,7 +299,7 @@ module ProjectsHelper ...@@ -299,7 +299,7 @@ module ProjectsHelper
end end
def show_issue_count?(disabled: false, compact_mode: false) 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 end
# overridden in EE # overridden in EE
......
---
title: Remove project_list_show_issue_count feature flag.
merge_request: 31793
author: Gilang Gumilar
type: removed
...@@ -760,11 +760,7 @@ describe ProjectsHelper do ...@@ -760,11 +760,7 @@ describe ProjectsHelper do
end end
describe '#show_issue_count?' do describe '#show_issue_count?' do
context 'when the feature flag is enabled' do context 'enabled flag' do
before do
stub_feature_flags(project_list_show_issue_count: true)
end
it 'returns true if compact mode is disabled' do it 'returns true if compact mode is disabled' do
expect(helper.show_issue_count?).to be_truthy expect(helper.show_issue_count?).to be_truthy
end end
...@@ -774,22 +770,7 @@ describe ProjectsHelper do ...@@ -774,22 +770,7 @@ describe ProjectsHelper do
end end
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 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 it 'returns false if disabled flag is true' do
expect(helper.show_issue_count?(disabled: true)).to be_falsey expect(helper.show_issue_count?(disabled: true)).to be_falsey
end 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