diff options
author | micael.bergeron <micaelbergeron@gmail.com> | 2017-10-31 20:21:08 +0300 |
---|---|---|
committer | micael.bergeron <micaelbergeron@gmail.com> | 2017-10-31 20:21:08 +0300 |
commit | 2b7e03cf699f9d266af585a1a9399c3e219fe063 (patch) | |
tree | d697e22535798de27221346b25bdde1b2b8b39cf /app | |
parent | 7799a9bc442738935104d3b047c257e5c5884d95 (diff) |
reword `targets` to `metric tags`
add changelog
Diffstat (limited to 'app')
-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 |