summaryrefslogtreecommitdiff
path: root/app/controllers/groups_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/groups_controller.rb')
-rw-r--r--app/controllers/groups_controller.rb26
1 files changed, 25 insertions, 1 deletions
diff --git a/app/controllers/groups_controller.rb b/app/controllers/groups_controller.rb
index 2d6f5d0377a..6f8dc75f6bd 100644
--- a/app/controllers/groups_controller.rb
+++ b/app/controllers/groups_controller.rb
@@ -30,6 +30,7 @@ class GroupsController < Groups::ApplicationController
before_action do
push_frontend_feature_flag(:vue_issuables_list, @group)
+ push_frontend_feature_flag(:deployment_filters)
end
before_action do
@@ -46,6 +47,17 @@ class GroupsController < Groups::ApplicationController
layout :determine_layout
+ feature_category :subgroups, [
+ :index, :new, :create, :show, :edit, :update,
+ :destroy, :details, :transfer
+ ]
+
+ feature_category :audit_events, [:activity]
+ feature_category :issue_tracking, [:issues, :issues_calendar, :preview_markdown]
+ feature_category :code_review, [:merge_requests, :unfoldered_environment_names]
+ feature_category :projects, [:projects]
+ feature_category :importers, [:export, :download_export]
+
def index
redirect_to(current_user ? dashboard_groups_path : explore_groups_path)
end
@@ -168,6 +180,16 @@ class GroupsController < Groups::ApplicationController
end
end
+ def unfoldered_environment_names
+ return render_404 unless Feature.enabled?(:deployment_filters)
+
+ respond_to do |format|
+ format.json do
+ render json: EnvironmentNamesFinder.new(@group, current_user).execute
+ end
+ end
+ end
+
protected
def render_show_html
@@ -230,7 +252,9 @@ class GroupsController < Groups::ApplicationController
:two_factor_grace_period,
:project_creation_level,
:subgroup_creation_level,
- :default_branch_protection
+ :default_branch_protection,
+ :default_branch_name,
+ :allow_mfa_for_subgroups
]
end