BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
83510980
Commit
83510980
authored
Jun 01, 2018
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'rails5-flatten' into 'master'
Fix project team members count Closes #46283 See merge request gitlab-org/gitlab-ce!19195
parents
1364dd12
8a5ad3ca
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
participants_service.rb
app/services/projects/participants_service.rb
+5
-3
No files found.
app/services/projects/participants_service.rb
View file @
83510980
...
...
@@ -5,14 +5,16 @@ module Projects
def
execute
(
noteable
)
@noteable
=
noteable
project_members
=
sorted
(
project
.
team
.
members
)
participants
=
noteable_owner
+
participants_in_noteable
+
all_members
+
groups
+
project_members
participants
.
uniq
end
def
project_members
@project_members
||=
sorted
(
project
.
team
.
members
)
end
def
all_members
count
=
project
.
team
.
members
.
flatten
.
count
[{
username:
"all"
,
name:
"All Project and Group Members"
,
count:
count
}]
[{
username:
"all"
,
name:
"All Project and Group Members"
,
count:
project_members
.
count
}]
end
end
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