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
0
Merge Requests
0
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
Léo-Paul Géneau
gitlab-ce
Commits
8bcb2ff2
Commit
8bcb2ff2
authored
Dec 19, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5865 from skv-headless/master
pluck user_ids during team import
parents
33feaa04
3adf35fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
app/models/project_team.rb
app/models/project_team.rb
+1
-2
No files found.
app/models/project_team.rb
View file @
8bcb2ff2
...
@@ -88,8 +88,7 @@ class ProjectTeam
...
@@ -88,8 +88,7 @@ class ProjectTeam
target_project
=
project
target_project
=
project
source_team
=
source_project
.
users_projects
.
to_a
source_team
=
source_project
.
users_projects
.
to_a
target_team
=
target_project
.
users_projects
.
to_a
target_user_ids
=
target_project
.
users_projects
.
pluck
(
:user_id
)
target_user_ids
=
target_team
.
map
(
&
:user_id
)
source_team
.
reject!
do
|
tm
|
source_team
.
reject!
do
|
tm
|
# Skip if user already present in team
# Skip if user already present in team
...
...
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