summaryrefslogtreecommitdiff
path: root/lib/sentry
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2019-11-19 15:06:24 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2019-11-19 15:06:24 +0000
commit88542a5e9613c8442a982e65ad5cf13eb33bc541 (patch)
tree11a65d86e623b443b8a2976cc93cff360e2da8a2 /lib/sentry
parentb570d73ecd31e2ca9cf8c2f1adb056edf2869477 (diff)
downloadgitlab-ce-88542a5e9613c8442a982e65ad5cf13eb33bc541.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/sentry')
-rw-r--r--lib/sentry/client.rb15
1 files changed, 10 insertions, 5 deletions
diff --git a/lib/sentry/client.rb b/lib/sentry/client.rb
index 6191d69c870..e4428f6fff2 100644
--- a/lib/sentry/client.rb
+++ b/lib/sentry/client.rb
@@ -25,8 +25,12 @@ module Sentry
map_to_event(latest_event)
end
- def list_issues(issue_status:, limit:)
- issues = get_issues(issue_status: issue_status, limit: limit)
+ def list_issues(issue_status:, limit:, search_term: '')
+ issues = get_issues(
+ issue_status: issue_status,
+ limit: limit,
+ search_term: search_term
+ )
validate_size(issues)
@@ -71,13 +75,14 @@ module Sentry
response = handle_request_exceptions do
Gitlab::HTTP.get(url, **request_params.merge(params))
end
-
handle_response(response)
end
- def get_issues(issue_status:, limit:)
+ def get_issues(issue_status:, limit:, search_term: '')
+ query = "is:#{issue_status} #{search_term}".strip
+
http_get(issues_api_url, query: {
- query: "is:#{issue_status}",
+ query: query,
limit: limit
})
end