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>2020-01-07 00:07:43 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-01-07 00:07:43 +0300
commit015663b70f1bcdae4483e38c2beac884f92da5b8 (patch)
tree6dd5a59c7f9a27c3cca22801ca30bf3dd8f9b401 /app/controllers/projects/error_tracking_controller.rb
parent5eb11b697d7ee280b0b5c2ff9a1850a3b5e9b7e3 (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.rb29
1 files changed, 1 insertions, 28 deletions
diff --git a/app/controllers/projects/error_tracking_controller.rb b/app/controllers/projects/error_tracking_controller.rb
index d1253d85758..35e12c37056 100644
--- a/app/controllers/projects/error_tracking_controller.rb
+++ b/app/controllers/projects/error_tracking_controller.rb
@@ -2,7 +2,7 @@
class Projects::ErrorTrackingController < Projects::ApplicationController
before_action :authorize_read_sentry_issue!
- before_action :set_issue_id, only: [:details, :stack_trace]
+ before_action :set_issue_id, only: :details
POLLING_INTERVAL = 10_000
@@ -25,14 +25,6 @@ class Projects::ErrorTrackingController < Projects::ApplicationController
end
end
- def stack_trace
- respond_to do |format|
- format.json do
- render_issue_stack_trace_json
- end
- end
- end
-
private
def render_index_json
@@ -63,19 +55,6 @@ class Projects::ErrorTrackingController < Projects::ApplicationController
}
end
- def render_issue_stack_trace_json
- service = ErrorTracking::IssueLatestEventService.new(project, current_user, issue_details_params)
- result = service.execute
-
- return if handle_errors(result)
-
- result_with_syntax_highlight = Gitlab::ErrorTracking::StackTraceHighlightDecorator.decorate(result[:latest_event])
-
- render json: {
- error: serialize_error_event(result_with_syntax_highlight)
- }
- end
-
def handle_errors(result)
unless result[:status] == :success
render json: { message: result[:message] },
@@ -110,10 +89,4 @@ class Projects::ErrorTrackingController < Projects::ApplicationController
.new(project: project, user: current_user)
.represent(error)
end
-
- def serialize_error_event(event)
- ErrorTracking::ErrorEventSerializer
- .new(project: project, user: current_user)
- .represent(event)
- end
end