summaryrefslogtreecommitdiff
path: root/app/controllers/projects/error_tracking_controller.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2019-12-03 10:28:37 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2019-12-03 10:28:37 +0000
commit662bb2b6f1f5b5730a0d1eaa66238e718468645d (patch)
treec1ca759e7d2c96e9c2023bbcf946f79e423473a5 /app/controllers/projects/error_tracking_controller.rb
parented8af41027110fdad8f7bb4d53329eb73417fb8d (diff)
downloadgitlab-ce-662bb2b6f1f5b5730a0d1eaa66238e718468645d.tar.gz
Add latest changes from gitlab-org/gitlab@12-5-stable-ee
Diffstat (limited to 'app/controllers/projects/error_tracking_controller.rb')
-rw-r--r--app/controllers/projects/error_tracking_controller.rb5
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