NoMethodError: undefined method `has_metrics?' for nil:NilClass
https://sentry.gitlab.net/gitlab/gitlabcom/issues/561552/
NoMethodError: undefined method `has_metrics?' for nil:NilClass
projects/deployments_controller.rb:18:in `metrics'
return render_404 unless deployment.has_metrics?
action_controller/metal/implicit_render.rb:4:in `send_action'
ret = super
abstract_controller/base.rb:198:in `process_action'
send_action(method_name, *args)
action_controller/metal/rendering.rb:10:in `process_action'
super
abstract_controller/callbacks.rb:20:in `block in process_action'
super
...
(127 additional frame(s) were not displayed)
NoMethodError: undefined method `has_metrics?' for nil:NilClass