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
3bf7444e
Commit
3bf7444e
authored
Jul 05, 2018
by
Jan Provaznik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Restrict group scope
parent
1f320d1c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
lib/gitlab/background_migration/fix_cross_project_label_links.rb
...lab/background_migration/fix_cross_project_label_links.rb
+1
-1
No files found.
lib/gitlab/background_migration/fix_cross_project_label_links.rb
View file @
3bf7444e
...
@@ -33,7 +33,7 @@ module Gitlab
...
@@ -33,7 +33,7 @@ module Gitlab
# To isolate migration code, we avoid usage of
# To isolate migration code, we avoid usage of
# Gitlab::GroupHierarchy#base_and_descendants which already
# Gitlab::GroupHierarchy#base_and_descendants which already
# does this job better
# does this job better
ids
=
Namespace
.
where
(
type:
'Group'
,
id:
start_id
..
stop_id
).
pluck
(
:id
)
ids
=
Namespace
.
where
(
type:
'Group'
,
id:
Label
.
where
(
type:
'GroupLabel'
).
select
(
'distinct group_id'
)).
where
(
id:
start_id
..
stop_id
).
pluck
(
:id
)
group_ids
=
ids
group_ids
=
ids
GROUP_NESTED_LEVEL
.
times
do
GROUP_NESTED_LEVEL
.
times
do
...
...
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