Remove duplicates from group milestone participants list.
This commit is contained in:
parent
0a9cab4ee6
commit
58ecb06f74
2 changed files with 4 additions and 4 deletions
|
@ -49,7 +49,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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue