Commit 0694db97 authored by Miguel Rincon's avatar Miguel Rincon

Switch key to snake_case

parent 90fd52b0
...@@ -46,7 +46,7 @@ module EE ...@@ -46,7 +46,7 @@ module EE
"custom-metrics-available" => "#{custom_metrics_available?(project)}", "custom-metrics-available" => "#{custom_metrics_available?(project)}",
"alerts-endpoint" => project_prometheus_alerts_path(project, environment_id: environment.id, format: :json), "alerts-endpoint" => project_prometheus_alerts_path(project, environment_id: environment.id, format: :json),
"prometheus-alerts-available" => "#{can?(current_user, :read_prometheus_alerts, project)}", "prometheus-alerts-available" => "#{can?(current_user, :read_prometheus_alerts, project)}",
"logs-path" => project_logs_path(project, environment_name: environment.name) "logs_path" => project_logs_path(project, environment_name: environment.name)
} }
super.merge(ee_metrics_data) super.merge(ee_metrics_data)
......
...@@ -27,7 +27,7 @@ describe EnvironmentsHelper do ...@@ -27,7 +27,7 @@ describe EnvironmentsHelper do
'custom-metrics-available' => 'false', 'custom-metrics-available' => 'false',
'alerts-endpoint' => project_prometheus_alerts_path(project, environment_id: environment.id, format: :json), 'alerts-endpoint' => project_prometheus_alerts_path(project, environment_id: environment.id, format: :json),
'prometheus-alerts-available' => 'true', 'prometheus-alerts-available' => 'true',
'logs-path' => project_logs_path(project, environment_name: environment.name) 'logs_path' => project_logs_path(project, environment_name: environment.name)
) )
end end
end end
......
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