sort pipeline graph builds and build groups by name

This commit is contained in:
Mike Greiling 2016-11-22 14:47:02 -06:00
parent c3f858b764
commit 9e87eaf83f

View file

@ -1,4 +1,4 @@
- status_groups = statuses.group_by(&:group_name)
- status_groups = statuses.sort_by(&:name).group_by(&:group_name)
- status_groups.each do |group_name, grouped_statuses|
- if grouped_statuses.one?
- status = grouped_statuses.first