diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2019-11-19 06:06:07 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2019-11-19 06:06:07 +0300 |
commit | 7f3bff1556594dcdc1beca40d083ba7263965e21 (patch) | |
tree | ab18d957d9bc7b2888c6e9fa9b281a7c1cb8927b /app/controllers/projects/error_tracking_controller.rb | |
parent | 8d0aed5e4a6ae59232cfa5ca168fa1b87073520d (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.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/controllers/projects/error_tracking_controller.rb b/app/controllers/projects/error_tracking_controller.rb index 9dea6b663ea..7143424473e 100644 --- a/app/controllers/projects/error_tracking_controller.rb +++ b/app/controllers/projects/error_tracking_controller.rb @@ -2,6 +2,7 @@ class Projects::ErrorTrackingController < Projects::ApplicationController before_action :authorize_read_sentry_issue! + before_action :set_issue_id, only: [:details, :stack_trace] POLLING_INTERVAL = 10_000 @@ -113,6 +114,10 @@ class Projects::ErrorTrackingController < Projects::ApplicationController params.permit(:issue_id) end + def set_issue_id + @issue_id = issue_details_params[:issue_id] + end + def set_polling_interval Gitlab::PollingInterval.set_header(response, interval: POLLING_INTERVAL) end |