Merge branch '30469-convdev-index' of gitlab.com:gitlab-org/gitlab-ce into 30469-convdev-index

This commit is contained in:
Simon Knox 2017-06-03 03:20:14 +10:00
commit d913ce1763
3 changed files with 4 additions and 4 deletions

View file

@ -9,9 +9,9 @@ module ConversationalDevelopmentIndex
end end
def percentage_score def percentage_score
sum = features.map do |feature| sum = features.sum do |feature|
metric.percentage_score(feature) metric.percentage_score(feature)
end.inject(:+) end
sum / features.size.to_f sum / features.size.to_f
end end

View file

@ -138,7 +138,7 @@ module ConversationalDevelopmentIndex
end end
def average_percentage_score def average_percentage_score
cards.map(&:percentage_score).inject(:+) / cards.size.to_f cards.sum(&:percentage_score) / cards.size.to_f
end end
end end
end end

View file

@ -8,6 +8,6 @@
%h4 %h4
Introducing Your Conversational Development Index Introducing Your Conversational Development Index
%p %p
Your Conversational Development Index gives an overview of how you are using GitLab from a feature perspective. View how they compare with other organizations, discover features your are not using, and learn best practices through blog posts and white papers. Your Conversational Development Index gives an overview of how you are using GitLab from a feature perspective. View how you compare with other organizations, discover features you are not using, and learn best practices through blog posts and white papers.
.svg-container.convdev .svg-container.convdev
= custom_icon('convdev_overview') = custom_icon('convdev_overview')