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>2019-11-19 18:06:24 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2019-11-19 18:06:24 +0300
commit88542a5e9613c8442a982e65ad5cf13eb33bc541 (patch)
tree11a65d86e623b443b8a2976cc93cff360e2da8a2 /app/controllers/projects/error_tracking_controller.rb
parentb570d73ecd31e2ca9cf8c2f1adb056edf2869477 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/controllers/projects/error_tracking_controller.rb')
-rw-r--r--app/controllers/projects/error_tracking_controller.rb10
1 files changed, 9 insertions, 1 deletions
diff --git a/app/controllers/projects/error_tracking_controller.rb b/app/controllers/projects/error_tracking_controller.rb
index 7143424473e..3969f33abe9 100644
--- a/app/controllers/projects/error_tracking_controller.rb
+++ b/app/controllers/projects/error_tracking_controller.rb
@@ -44,7 +44,11 @@ class Projects::ErrorTrackingController < Projects::ApplicationController
private
def render_index_json
- service = ErrorTracking::ListIssuesService.new(project, current_user)
+ service = ErrorTracking::ListIssuesService.new(
+ project,
+ current_user,
+ list_issues_params
+ )
result = service.execute
return if handle_errors(result)
@@ -106,6 +110,10 @@ class Projects::ErrorTrackingController < Projects::ApplicationController
end
end
+ def list_issues_params
+ params.permit(:search_term)
+ end
+
def list_projects_params
params.require(:error_tracking_setting).permit([:api_host, :token])
end