Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-10-28 00:12:19 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-10-28 00:12:19 +0300
commitf3d0329fcb9c703757c4859b12d19c5c3fe42c40 (patch)
tree499c86fad4ab967a9ffdb2cddeead2afe792968c /app/controllers
parent7badd9fd55f9b877f2de8c8d0126c720a57e538d (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/groups/work_items_controller.rb7
-rw-r--r--app/controllers/groups_controller.rb3
2 files changed, 10 insertions, 0 deletions
diff --git a/app/controllers/groups/work_items_controller.rb b/app/controllers/groups/work_items_controller.rb
index bd85f12119b..ece279da778 100644
--- a/app/controllers/groups/work_items_controller.rb
+++ b/app/controllers/groups/work_items_controller.rb
@@ -4,6 +4,13 @@ module Groups
class WorkItemsController < Groups::ApplicationController
feature_category :team_planning
+ before_action do
+ push_force_frontend_feature_flag(:work_items, group&.work_items_feature_flag_enabled?)
+ push_force_frontend_feature_flag(:work_items_mvc, group&.work_items_mvc_feature_flag_enabled?)
+ push_force_frontend_feature_flag(:work_items_mvc_2, group&.work_items_mvc_2_feature_flag_enabled?)
+ push_force_frontend_feature_flag(:linked_work_items, group&.linked_work_items_feature_flag_enabled?)
+ end
+
def index
not_found unless Feature.enabled?(:namespace_level_work_items, group)
end
diff --git a/app/controllers/groups_controller.rb b/app/controllers/groups_controller.rb
index 83c4efa5a42..72a5c4d3e69 100644
--- a/app/controllers/groups_controller.rb
+++ b/app/controllers/groups_controller.rb
@@ -36,6 +36,9 @@ class GroupsController < Groups::ApplicationController
push_frontend_feature_flag(:or_issuable_queries, group)
push_frontend_feature_flag(:frontend_caching, group)
push_force_frontend_feature_flag(:work_items, group.work_items_feature_flag_enabled?)
+ push_force_frontend_feature_flag(:work_items_mvc, group.work_items_mvc_feature_flag_enabled?)
+ push_force_frontend_feature_flag(:work_items_mvc_2, group.work_items_mvc_2_feature_flag_enabled?)
+ push_force_frontend_feature_flag(:linked_work_items, group.linked_work_items_feature_flag_enabled?)
push_frontend_feature_flag(:issues_grid_view)
push_frontend_feature_flag(:group_multi_select_tokens, group)
end