diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-01-10 00:07:48 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-01-10 00:07:48 +0300 |
commit | e98d69bc8b8b926a727d36e37d2ee30c9fa28907 (patch) | |
tree | 1e86398c19b6ddd0602a99fb449cf75652ac62cf /lib/sentry | |
parent | 007aba8b3b5583c5ef31670369f32f9f1f72555d (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/sentry')
-rw-r--r-- | lib/sentry/client.rb | 2 | ||||
-rw-r--r-- | lib/sentry/client/issue.rb | 8 |
2 files changed, 5 insertions, 5 deletions
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!('/') |