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
b8df77c9
Commit
b8df77c9
authored
Apr 03, 2020
by
rpereira2
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove CustomMetricsHelper from EE module
parent
db2e0dbf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
17 deletions
+15
-17
app/helpers/custom_metrics_helper.rb
app/helpers/custom_metrics_helper.rb
+15
-17
No files found.
app/helpers/custom_metrics_helper.rb
View file @
b8df77c9
# frozen_string_literal: true
# frozen_string_literal: true
module
EE
module
CustomMetricsHelper
module
CustomMetricsHelper
def
custom_metrics_data
(
project
,
metric
)
def
custom_metrics_data
(
project
,
metric
)
custom_metrics_path
=
project
.
namespace
.
becomes
(
::
Namespace
)
custom_metrics_path
=
project
.
namespace
.
becomes
(
::
Namespace
)
{
{
'custom-metrics-path'
=>
url_for
([
custom_metrics_path
,
project
,
metric
]),
'custom-metrics-path'
=>
url_for
([
custom_metrics_path
,
project
,
metric
]),
'metric-persisted'
=>
metric
.
persisted?
.
to_s
,
'metric-persisted'
=>
metric
.
persisted?
.
to_s
,
'edit-project-service-path'
=>
edit_project_service_path
(
project
,
PrometheusService
),
'edit-project-service-path'
=>
edit_project_service_path
(
project
,
PrometheusService
),
'validate-query-path'
=>
validate_query_project_prometheus_metrics_path
(
project
),
'validate-query-path'
=>
validate_query_project_prometheus_metrics_path
(
project
),
'title'
=>
metric
.
title
.
to_s
,
'title'
=>
metric
.
title
.
to_s
,
'query'
=>
metric
.
query
.
to_s
,
'query'
=>
metric
.
query
.
to_s
,
'y-label'
=>
metric
.
y_label
.
to_s
,
'y-label'
=>
metric
.
y_label
.
to_s
,
'unit'
=>
metric
.
unit
.
to_s
,
'unit'
=>
metric
.
unit
.
to_s
,
'group'
=>
metric
.
group
.
to_s
,
'group'
=>
metric
.
group
.
to_s
,
'legend'
=>
metric
.
legend
.
to_s
'legend'
=>
metric
.
legend
.
to_s
}
}
end
end
end
end
end
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