Commit 08971e33 authored by Vitali Tatarintev's avatar Vitali Tatarintev

Merge branch 'constant-uppercase' into 'master'

Change constant to uppercase

See merge request gitlab-org/gitlab!47660
parents a8ff384b a7425bd1
...@@ -4,7 +4,7 @@ module JiraConnectSubscriptions ...@@ -4,7 +4,7 @@ module JiraConnectSubscriptions
class CreateService < ::JiraConnectSubscriptions::BaseService class CreateService < ::JiraConnectSubscriptions::BaseService
include Gitlab::Utils::StrongMemoize include Gitlab::Utils::StrongMemoize
MERGE_REQUEST_SYNC_BATCH_SIZE = 20 MERGE_REQUEST_SYNC_BATCH_SIZE = 20
MERGE_REQUEST_SYNC_BATCH_delay = 1.minute.freeze MERGE_REQUEST_SYNC_BATCH_DELAY = 1.minute.freeze
def execute def execute
unless namespace && can?(current_user, :create_jira_connect_subscription, namespace) unless namespace && can?(current_user, :create_jira_connect_subscription, namespace)
...@@ -39,7 +39,7 @@ module JiraConnectSubscriptions ...@@ -39,7 +39,7 @@ module JiraConnectSubscriptions
namespace.all_projects.each_batch(of: MERGE_REQUEST_SYNC_BATCH_SIZE) do |projects, index| namespace.all_projects.each_batch(of: MERGE_REQUEST_SYNC_BATCH_SIZE) do |projects, index|
JiraConnect::SyncProjectWorker.bulk_perform_in_with_contexts( JiraConnect::SyncProjectWorker.bulk_perform_in_with_contexts(
index * MERGE_REQUEST_SYNC_BATCH_delay, index * MERGE_REQUEST_SYNC_BATCH_DELAY,
projects, projects,
arguments_proc: -> (project) { [project.id, Atlassian::JiraConnect::Client.generate_update_sequence_id] }, arguments_proc: -> (project) { [project.id, Atlassian::JiraConnect::Client.generate_update_sequence_id] },
context_proc: -> (project) { { project: project } } context_proc: -> (project) { { project: project } }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment