Commit 3e75a3c8 authored by sstern's avatar sstern

Rm FF for wrk in progress limits

parent 71f20670
......@@ -11,7 +11,8 @@ module EE
private
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
......@@ -36,7 +36,7 @@ module EE
private
def wip_limits_available?
board_parent.beta_feature_available?(:wip_limits)
board_parent.feature_available?(:wip_limits)
end
end
end
......
......@@ -38,7 +38,7 @@ module EE
def wip_limits_available?
strong_memoize(:wip_limits_available) do
board.resource_parent.beta_feature_available?(:wip_limits)
board.resource_parent.feature_available?(:wip_limits)
end
end
......
......@@ -69,7 +69,7 @@ module EE
end
def wip_limits_available?
parent.beta_feature_available?(:wip_limits)
parent.feature_available?(:wip_limits)
end
end
end
......
- if current_board_parent.beta_feature_available?(:wip_limits)
- if current_board_parent.feature_available?(:wip_limits)
%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",
"@click" => "openSidebarSettings",
"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
login_as(user)
end
context 'When FF is turned on' do
context 'When license is available' do
let!(:label) { create(:label, project: project, name: 'Brount') }
let!(:list) { create(:list, board: board, label: label, position: 1) }
before do
stub_feature_flags(wip_limits: true)
visit project_boards_path(project)
stub_licensed_features(wip_limits: true)
visit_board_page
end
it 'shows the list settings button' do
......@@ -277,9 +277,9 @@ describe 'issue boards', :js do
end
end
context 'When FF is turned off' do
context 'When license is not available' do
before do
stub_feature_flags(wip_limits: false)
stub_licensed_features(wip_limits: false)
visit project_boards_path(project)
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