From e98d69bc8b8b926a727d36e37d2ee30c9fa28907 Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Thu, 9 Jan 2020 21:07:48 +0000 Subject: Add latest changes from gitlab-org/gitlab@master --- lib/sentry/client.rb | 2 +- lib/sentry/client/issue.rb | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'lib/sentry') diff --git a/lib/sentry/client.rb b/lib/sentry/client.rb index 40821e2b233..29b00a6f8b2 100644 --- a/lib/sentry/client.rb +++ b/lib/sentry/client.rb @@ -43,7 +43,7 @@ module Sentry def http_put(url, params = {}) http_request do - Gitlab::HTTP.put(url, **request_params.merge({ body: params })) + Gitlab::HTTP.put(url, **request_params.merge(body: params)) end end diff --git a/lib/sentry/client/issue.rb b/lib/sentry/client/issue.rb index b6f2e07d233..eb5b32289ba 100644 --- a/lib/sentry/client/issue.rb +++ b/lib/sentry/client/issue.rb @@ -34,6 +34,10 @@ module Sentry map_to_detailed_error(issue) end + def update_issue(issue_id:, params:) + http_put(issue_api_url(issue_id), params)[:body] + end + private def get_issues(**keyword_args) @@ -71,10 +75,6 @@ module Sentry http_get(issue_api_url(issue_id))[:body] end - def update_issue(issue_id:, params:) - http_put(issue_api_url(issue_id), params)[:body] - end - def issues_api_url issues_url = URI("#{url}/issues/") issues_url.path.squeeze!('/') -- cgit v1.2.3