summaryrefslogtreecommitdiff
path: root/app/services
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-01-09 21:07:48 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-01-09 21:07:48 +0000
commite98d69bc8b8b926a727d36e37d2ee30c9fa28907 (patch)
tree1e86398c19b6ddd0602a99fb449cf75652ac62cf /app/services
parent007aba8b3b5583c5ef31670369f32f9f1f72555d (diff)
downloadgitlab-ce-e98d69bc8b8b926a727d36e37d2ee30c9fa28907.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/services')
-rw-r--r--app/services/error_tracking/issue_update_service.rb22
1 files changed, 22 insertions, 0 deletions
diff --git a/app/services/error_tracking/issue_update_service.rb b/app/services/error_tracking/issue_update_service.rb
new file mode 100644
index 00000000000..e433b4a11f2
--- /dev/null
+++ b/app/services/error_tracking/issue_update_service.rb
@@ -0,0 +1,22 @@
+# frozen_string_literal: true
+
+module ErrorTracking
+ class IssueUpdateService < ErrorTracking::BaseService
+ private
+
+ def fetch
+ project_error_tracking_setting.update_issue(
+ issue_id: params[:issue_id],
+ params: update_params
+ )
+ end
+
+ def update_params
+ params.except(:issue_id)
+ end
+
+ def parse_response(response)
+ { updated: response[:updated].present? }
+ end
+ end
+end