Skip to content
代码片段 群组 项目
提交 fffbf6f3 编辑于 作者: Vijay Hawoldar's avatar Vijay Hawoldar
浏览文件

Removes namespace_limits_admin_dashboard FF

With the completion of the admin UI for namespace limit controls, we can
remove the feature flag that was preventing it being available

Changelog: added
EE: true
上级 366e811b
No related branches found
No related tags found
无相关合并请求
---
name: namespace_limits_admin_dashboard
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/115704
rollout_issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/399220
milestone: '15.11'
type: development
group: group::utilization
default_enabled: false
...@@ -5,7 +5,6 @@ class NamespaceLimitsController < Admin::ApplicationController ...@@ -5,7 +5,6 @@ class NamespaceLimitsController < Admin::ApplicationController
feature_category :consumables_cost_management feature_category :consumables_cost_management
urgency :low urgency :low
before_action :check_dashboard_enabled
before_action :check_gitlab_com before_action :check_gitlab_com
def index; end def index; end
...@@ -15,9 +14,5 @@ def index; end ...@@ -15,9 +14,5 @@ def index; end
def check_gitlab_com def check_gitlab_com
not_found unless ::Gitlab::CurrentSettings.should_check_namespace_plan? not_found unless ::Gitlab::CurrentSettings.should_check_namespace_plan?
end end
def check_dashboard_enabled
not_found unless ::Feature.enabled?(:namespace_limits_admin_dashboard, current_user)
end
end end
end end
...@@ -38,14 +38,6 @@ ...@@ -38,14 +38,6 @@
context 'when not on .com' do context 'when not on .com' do
it_behaves_like 'not found' it_behaves_like 'not found'
end end
context 'when :namespace_limits_admin_dashboard is disabled' do
before do
stub_feature_flags(namespace_limits_admin_dashboard: false)
end
it_behaves_like 'not found'
end
end end
context 'with non-admin user' do context 'with non-admin user' do
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册