Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
de5fc639
Commit
de5fc639
authored
May 06, 2021
by
Brandon Labuschagne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Additional BE refactor
parent
08d4ceb6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
19 deletions
+7
-19
app/helpers/dev_ops_report_helper.rb
app/helpers/dev_ops_report_helper.rb
+7
-9
app/views/admin/dev_ops_report/_no_data.html.haml
app/views/admin/dev_ops_report/_no_data.html.haml
+0
-7
locale/gitlab.pot
locale/gitlab.pot
+0
-3
No files found.
app/helpers/dev_ops_report_helper.rb
View file @
de5fc639
...
...
@@ -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
...
...
app/views/admin/dev_ops_report/_no_data.html.haml
deleted
100644 → 0
View file @
08d4ceb6
.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'
locale/gitlab.pot
View file @
de5fc639
...
...
@@ -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 ""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment