diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-06-16 21:25:58 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-06-16 21:25:58 +0300 |
commit | a5f4bba440d7f9ea47046a0a561d49adf0a1e6d4 (patch) | |
tree | fb69158581673816a8cd895f9d352dcb3c678b1e /app/workers/users | |
parent | d16b2e8639e99961de6ddc93909f3bb5c1445ba1 (diff) |
Add latest changes from gitlab-org/gitlab@14-0-stable-eev14.0.0-rc42
Diffstat (limited to 'app/workers/users')
-rw-r--r-- | app/workers/users/update_open_issue_count_worker.rb | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/app/workers/users/update_open_issue_count_worker.rb b/app/workers/users/update_open_issue_count_worker.rb deleted file mode 100644 index d9e313d53df..00000000000 --- a/app/workers/users/update_open_issue_count_worker.rb +++ /dev/null @@ -1,26 +0,0 @@ -# frozen_string_literal: true - -module Users - class UpdateOpenIssueCountWorker - include ApplicationWorker - - feature_category :users - tags :exclude_from_kubernetes - idempotent! - - def perform(target_user_ids) - target_user_ids = Array.wrap(target_user_ids) - - raise ArgumentError, 'No target user ID provided' if target_user_ids.empty? - - target_users = User.id_in(target_user_ids) - raise ArgumentError, 'No valid target user ID provided' if target_users.empty? - - target_users.each do |user| - Users::UpdateAssignedOpenIssueCountService.new(target_user: user).execute - end - rescue StandardError => exception - Gitlab::ErrorTracking.track_and_raise_for_dev_exception(exception) - end - end -end |