Commit de5fc639 authored by Brandon Labuschagne's avatar Brandon Labuschagne

Additional BE refactor

parent 08d4ceb6
......@@ -2,15 +2,13 @@
module DevOpsReportHelper
def devops_score_metrics(metric)
if metric.blank?
{}
else
{
averageScore: average_score_data(metric),
cards: devops_score_card_data(metric),
createdAt: metric.created_at.strftime('%Y-%m-%d %H:%M')
}
end
return {} if metric.blank?
{
averageScore: average_score_data(metric),
cards: devops_score_card_data(metric),
createdAt: metric.created_at.strftime('%Y-%m-%d %H:%M')
}
end
private
......
.container.devops-empty
.col-sm-12.justify-content-center.text-center
= custom_icon('dev_ops_report_no_data')
%h4= _('Data is still calculating...')
%p
= _('It may be several days before you see feature usage data.')
= link_to _('Our documentation includes an example DevOps Score report.'), help_page_path('user/admin_area/analytics/dev_ops_report'), target: '_blank'
......@@ -22990,9 +22990,6 @@ msgstr ""
msgid "Otherwise, click the link below to complete the process:"
msgstr ""
msgid "Our documentation includes an example DevOps Score report."
msgstr ""
msgid "Out-of-compliance with this project's policies and should be removed"
msgstr ""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment