diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-08-20 18:42:06 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-08-20 18:42:06 +0000 |
commit | 6e4e1050d9dba2b7b2523fdd1768823ab85feef4 (patch) | |
tree | 78be5963ec075d80116a932011d695dd33910b4e /app/helpers/custom_metrics_helper.rb | |
parent | 1ce776de4ae122aba3f349c02c17cebeaa8ecf07 (diff) | |
download | gitlab-ce-6e4e1050d9dba2b7b2523fdd1768823ab85feef4.tar.gz |
Add latest changes from gitlab-org/gitlab@13-3-stable-ee
Diffstat (limited to 'app/helpers/custom_metrics_helper.rb')
-rw-r--r-- | app/helpers/custom_metrics_helper.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/app/helpers/custom_metrics_helper.rb b/app/helpers/custom_metrics_helper.rb index fbea6d2050f..5ea386e268d 100644 --- a/app/helpers/custom_metrics_helper.rb +++ b/app/helpers/custom_metrics_helper.rb @@ -2,10 +2,8 @@ module CustomMetricsHelper def custom_metrics_data(project, metric) - custom_metrics_path = project.namespace.becomes(::Namespace) - { - 'custom-metrics-path' => url_for([custom_metrics_path, project, metric]), + 'custom-metrics-path' => url_for([project, metric]), 'metric-persisted' => metric.persisted?.to_s, 'edit-project-service-path' => edit_project_service_path(project, PrometheusService), 'validate-query-path' => validate_query_project_prometheus_metrics_path(project), |