diff options
author | micael.bergeron <micaelbergeron@gmail.com> | 2017-10-31 13:21:08 -0400 |
---|---|---|
committer | micael.bergeron <micaelbergeron@gmail.com> | 2017-10-31 13:21:08 -0400 |
commit | 2b7e03cf699f9d266af585a1a9399c3e219fe063 (patch) | |
tree | d697e22535798de27221346b25bdde1b2b8b39cf /app/workers | |
parent | 7799a9bc442738935104d3b047c257e5c5884d95 (diff) | |
download | gitlab-ce-2b7e03cf699f9d266af585a1a9399c3e219fe063.tar.gz |
reword `targets` to `metric tags`
add changelog
Diffstat (limited to 'app/workers')
-rw-r--r-- | app/workers/update_merge_requests_worker.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/app/workers/update_merge_requests_worker.rb b/app/workers/update_merge_requests_worker.rb index f1e43bea8b3..e364fb698d3 100644 --- a/app/workers/update_merge_requests_worker.rb +++ b/app/workers/update_merge_requests_worker.rb @@ -2,10 +2,10 @@ class UpdateMergeRequestsWorker include Sidekiq::Worker include DedicatedSidekiqQueue - attr_reader :targets # for metrics tags + attr_reader :metrics_tags def initialize - @targets = {} + @metrics_tags = {} end def perform(project_id, user_id, oldrev, newrev, ref) @@ -15,10 +15,11 @@ class UpdateMergeRequestsWorker user = User.find_by(id: user_id) return unless user - @targets = { + @metrics_tags = { project_id: project_id, user_id: user_id } + MergeRequests::RefreshService.new(project, user).execute(oldrev, newrev, ref) end end |