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
ef8aa5da
Commit
ef8aa5da
authored
Oct 21, 2020
by
Arturo Herrero
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename services to batch for consistency
parent
88d7f03b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
app/workers/propagate_integration_inherit_descendant_worker.rb
...orkers/propagate_integration_inherit_descendant_worker.rb
+2
-2
app/workers/propagate_integration_inherit_worker.rb
app/workers/propagate_integration_inherit_worker.rb
+2
-2
No files found.
app/workers/propagate_integration_inherit_descendant_worker.rb
View file @
ef8aa5da
...
...
@@ -11,9 +11,9 @@ class PropagateIntegrationInheritDescendantWorker
integration
=
Service
.
find_by_id
(
integration_id
)
return
unless
integration
services
=
Service
.
inherited_descendant_integrations_for
(
integration
).
where
(
id:
min_id
..
max_id
)
batch
=
Service
.
inherited_descendant_integrations_for
(
integration
).
where
(
id:
min_id
..
max_id
)
BulkUpdateIntegrationService
.
new
(
integration
,
services
).
execute
BulkUpdateIntegrationService
.
new
(
integration
,
batch
).
execute
end
# rubocop: enable CodeReuse/ActiveRecord
end
app/workers/propagate_integration_inherit_worker.rb
View file @
ef8aa5da
...
...
@@ -11,9 +11,9 @@ class PropagateIntegrationInheritWorker
integration
=
Service
.
find_by_id
(
integration_id
)
return
unless
integration
services
=
Service
.
where
(
id:
min_id
..
max_id
).
by_type
(
integration
.
type
).
inherit_from_id
(
integration
.
id
)
batch
=
Service
.
where
(
id:
min_id
..
max_id
).
by_type
(
integration
.
type
).
inherit_from_id
(
integration
.
id
)
BulkUpdateIntegrationService
.
new
(
integration
,
services
).
execute
BulkUpdateIntegrationService
.
new
(
integration
,
batch
).
execute
end
# rubocop: enable CodeReuse/ActiveRecord
end
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