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
ff6a5fb3
Commit
ff6a5fb3
authored
Feb 06, 2015
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'remove-group-milestone-participants-duplicates' into 'master'
Remove duplicates from group milestone participants list. See merge request !1473
parents
411bf8ca
58ecb06f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
CHANGELOG
CHANGELOG
+1
-1
group_milestone.rb
app/models/group_milestone.rb
+3
-3
No files found.
CHANGELOG
View file @
ff6a5fb3
...
...
@@ -51,7 +51,7 @@ v 7.8.0
-
- Add action property to merge request hook (Julien Bianchi)
-
-
-
Remove duplicates from group milestone participants list.
-
-
- Add a new API function that retrieves all issues assigned to a single milestone (Justin Whear and Hannes Rosenögger)
...
...
app/models/group_milestone.rb
View file @
ff6a5fb3
...
...
@@ -66,15 +66,15 @@ class GroupMilestone
end
def
issues
@group_issues
||=
milestones
.
map
{
|
milestone
|
milestone
.
issues
}
.
flatten
.
group_by
(
&
:state
)
@group_issues
||=
milestones
.
map
(
&
:issues
)
.
flatten
.
group_by
(
&
:state
)
end
def
merge_requests
@group_merge_requests
||=
milestones
.
map
{
|
milestone
|
milestone
.
merge_requests
}
.
flatten
.
group_by
(
&
:state
)
@group_merge_requests
||=
milestones
.
map
(
&
:merge_requests
)
.
flatten
.
group_by
(
&
:state
)
end
def
participants
milestones
.
map
{
|
milestone
|
milestone
.
participants
.
uniq
}.
reject
(
&
:empty?
).
flatten
@group_participants
||=
milestones
.
map
(
&
:participants
).
flatten
.
compact
.
uniq
end
def
opened_issues
...
...
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