summaryrefslogtreecommitdiff
path: root/lib/sentry/client/issue.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-01-14 15:07:55 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-01-14 15:07:55 +0000
commit85e494935a8726dc98bb19ffa584488420e5011e (patch)
tree5acf279dab81a2363e4504a9679c32c16510542b /lib/sentry/client/issue.rb
parent4ce0bee95df15c05cdb0d777eba31fe753bc443b (diff)
downloadgitlab-ce-85e494935a8726dc98bb19ffa584488420e5011e.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/sentry/client/issue.rb')
-rw-r--r--lib/sentry/client/issue.rb20
1 files changed, 3 insertions, 17 deletions
diff --git a/lib/sentry/client/issue.rb b/lib/sentry/client/issue.rb
index b3b3776624b..1c5d88e8862 100644
--- a/lib/sentry/client/issue.rb
+++ b/lib/sentry/client/issue.rb
@@ -35,14 +35,14 @@ module Sentry
end
def update_issue(issue_id:, params:)
- http_put(issue_api_url(issue_id), params)[:body]
+ http_put(api_urls.issue_url(issue_id), params)[:body]
end
private
def get_issues(**keyword_args)
response = http_get(
- issues_api_url,
+ api_urls.issues_url,
query: list_issue_sentry_query(keyword_args)
)
@@ -72,21 +72,7 @@ module Sentry
end
def get_issue(issue_id:)
- http_get(issue_api_url(issue_id))[:body]
- end
-
- def issues_api_url
- issues_url = URI("#{url}/issues/")
- issues_url.path.squeeze!('/')
-
- issues_url
- end
-
- def issue_api_url(issue_id)
- issue_url = URI(url)
- issue_url.path = "/api/0/issues/#{CGI.escape(issue_id.to_s)}/"
-
- issue_url
+ http_get(api_urls.issue_url(issue_id))[:body]
end
def parse_gitlab_issue(plugin_issues)