Commit ec1224de authored by Stan Hu's avatar Stan Hu

Merge branch 'ss/wrk-in-prog-limit-default-on' into 'master'

Rm FF for wrk in progress limits

See merge request gitlab-org/gitlab!23229
parents b17998b4 3e75a3c8
...@@ -11,7 +11,8 @@ module EE ...@@ -11,7 +11,8 @@ module EE
private private
def push_wip_limits def push_wip_limits
push_frontend_feature_flag(:wip_limits, parent) if parent.feature_available?(:wip_limits) # This is pushing a licensed Feature to the frontend.
push_frontend_feature_flag(:wip_limits, default_enabled: true) if parent.feature_available?(:wip_limits)
end end
end end
end end
...@@ -36,7 +36,7 @@ module EE ...@@ -36,7 +36,7 @@ module EE
private private
def wip_limits_available? def wip_limits_available?
board_parent.beta_feature_available?(:wip_limits) board_parent.feature_available?(:wip_limits)
end end
end end
end end
......
...@@ -38,7 +38,7 @@ module EE ...@@ -38,7 +38,7 @@ module EE
def wip_limits_available? def wip_limits_available?
strong_memoize(:wip_limits_available) do strong_memoize(:wip_limits_available) do
board.resource_parent.beta_feature_available?(:wip_limits) board.resource_parent.feature_available?(:wip_limits)
end end
end end
......
...@@ -69,7 +69,7 @@ module EE ...@@ -69,7 +69,7 @@ module EE
end end
def wip_limits_available? def wip_limits_available?
parent.beta_feature_available?(:wip_limits) parent.feature_available?(:wip_limits)
end end
end end
end end
......
- if current_board_parent.beta_feature_available?(:wip_limits) - if current_board_parent.feature_available?(:wip_limits)
%board-settings-sidebar %board-settings-sidebar
- if current_board_parent.beta_feature_available?(:wip_limits) - if current_board_parent.feature_available?(:wip_limits)
%gl-button.no-drag.rounded-right{ type: "button", %gl-button.no-drag.rounded-right{ type: "button",
"@click" => "openSidebarSettings", "@click" => "openSidebarSettings",
"v-if" => "isSettingsShown", "v-if" => "isSettingsShown",
......
---
title: Add support for work in progress limits - Max issue count only
merge_request:
author:
type: added
...@@ -194,13 +194,13 @@ describe 'issue boards', :js do ...@@ -194,13 +194,13 @@ describe 'issue boards', :js do
login_as(user) login_as(user)
end end
context 'When FF is turned on' do context 'When license is available' do
let!(:label) { create(:label, project: project, name: 'Brount') } let!(:label) { create(:label, project: project, name: 'Brount') }
let!(:list) { create(:list, board: board, label: label, position: 1) } let!(:list) { create(:list, board: board, label: label, position: 1) }
before do before do
stub_feature_flags(wip_limits: true) stub_licensed_features(wip_limits: true)
visit project_boards_path(project) visit_board_page
end end
it 'shows the list settings button' do it 'shows the list settings button' do
...@@ -277,9 +277,9 @@ describe 'issue boards', :js do ...@@ -277,9 +277,9 @@ describe 'issue boards', :js do
end end
end end
context 'When FF is turned off' do context 'When license is not available' do
before do before do
stub_feature_flags(wip_limits: false) stub_licensed_features(wip_limits: false)
visit project_boards_path(project) visit project_boards_path(project)
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