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-10 09:10:29 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-10-10 09:10:29 +0300
commit3669bcfaaa7cd18b6b6f890bdd6f75c13e74b830 (patch)
treec463a7297675a617fbf63e14db28667d54d3daf0 /app/controllers
parent9cf88c2d9632fe649bd3523fd490d6f5523fb8d0 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/projects/issues_controller.rb2
-rw-r--r--app/controllers/search_controller.rb20
2 files changed, 21 insertions, 1 deletions
diff --git a/app/controllers/projects/issues_controller.rb b/app/controllers/projects/issues_controller.rb
index 656e4fdaefb..fc7865c949d 100644
--- a/app/controllers/projects/issues_controller.rb
+++ b/app/controllers/projects/issues_controller.rb
@@ -456,7 +456,7 @@ class Projects::IssuesController < Projects::ApplicationController
def redirect_if_work_item
return unless use_work_items_path?(issue)
- redirect_to project_work_items_path(project, issue.iid, params: request.query_parameters)
+ redirect_to project_work_item_path(project, issue.iid, params: request.query_parameters)
end
def require_incident_for_incident_routes
diff --git a/app/controllers/search_controller.rb b/app/controllers/search_controller.rb
index d247490402f..3f44aef3eda 100644
--- a/app/controllers/search_controller.rb
+++ b/app/controllers/search_controller.rb
@@ -35,6 +35,26 @@ class SearchController < ApplicationController
update_scope_for_code_search
end
+ before_action only: :show do
+ push_frontend_feature_flag(:search_notes_hide_archived_projects, current_user)
+ end
+
+ before_action only: :show do
+ push_frontend_feature_flag(:search_issues_hide_archived_projects, current_user)
+ end
+
+ before_action only: :show do
+ push_frontend_feature_flag(:search_merge_requests_hide_archived_projects, current_user)
+ end
+
+ before_action only: :show do
+ push_frontend_feature_flag(:search_commits_hide_archived_projects, current_user)
+ end
+
+ before_action only: :show do
+ push_frontend_feature_flag(:search_milestones_hide_archived_projects, current_user)
+ end
+
rescue_from ActiveRecord::QueryCanceled, with: :render_timeout
layout 'search'