Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
a7425bd1
Commit
a7425bd1
authored
Nov 13, 2020
by
Arturo Herrero
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change constant to uppercase
parent
6d214afd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
app/services/jira_connect_subscriptions/create_service.rb
app/services/jira_connect_subscriptions/create_service.rb
+2
-2
No files found.
app/services/jira_connect_subscriptions/create_service.rb
View file @
a7425bd1
...
...
@@ -4,7 +4,7 @@ module JiraConnectSubscriptions
class
CreateService
<
::
JiraConnectSubscriptions
::
BaseService
include
Gitlab
::
Utils
::
StrongMemoize
MERGE_REQUEST_SYNC_BATCH_SIZE
=
20
MERGE_REQUEST_SYNC_BATCH_
delay
=
1
.
minute
.
freeze
MERGE_REQUEST_SYNC_BATCH_
DELAY
=
1
.
minute
.
freeze
def
execute
unless
namespace
&&
can?
(
current_user
,
:create_jira_connect_subscription
,
namespace
)
...
...
@@ -39,7 +39,7 @@ module JiraConnectSubscriptions
namespace
.
all_projects
.
each_batch
(
of:
MERGE_REQUEST_SYNC_BATCH_SIZE
)
do
|
projects
,
index
|
JiraConnect
::
SyncProjectWorker
.
bulk_perform_in_with_contexts
(
index
*
MERGE_REQUEST_SYNC_BATCH_
delay
,
index
*
MERGE_REQUEST_SYNC_BATCH_
DELAY
,
projects
,
arguments_proc:
->
(
project
)
{
[
project
.
id
,
Atlassian
::
JiraConnect
::
Client
.
generate_update_sequence_id
]
},
context_proc:
->
(
project
)
{
{
project:
project
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment