提交 d913ce17 编写于 作者: S Simon Knox

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

......@@ -9,9 +9,9 @@ module ConversationalDevelopmentIndex
end
def percentage_score
sum = features.map do |feature|
sum = features.sum do |feature|
metric.percentage_score(feature)
end.inject(:+)
end
sum / features.size.to_f
end
......
......@@ -138,7 +138,7 @@ module ConversationalDevelopmentIndex
end
def average_percentage_score
cards.map(&:percentage_score).inject(:+) / cards.size.to_f
cards.sum(&:percentage_score) / cards.size.to_f
end
end
end
......@@ -8,6 +8,6 @@
%h4
Introducing Your Conversational Development Index
%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
= custom_icon('convdev_overview')
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册