summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorPawel Chojnacki <pawel@chojnacki.ws>2017-06-22 21:19:55 +0200
committerPawel Chojnacki <pawel@chojnacki.ws>2017-06-22 21:19:55 +0200
commite00f487049e811c497ba3780f38f7e1a8572ad97 (patch)
tree808d99bb2d43f9620fc2074ea9068ec4f8bf0b0d /app
parent97c42df3b804a37e659c3cda6bd8a52570f31366 (diff)
downloadgitlab-ce-e00f487049e811c497ba3780f38f7e1a8572ad97.tar.gz
Fix bug where Service `created_at` time was used instead of deployment time.33933-fix-deployment-indicator-date
Diffstat (limited to 'app')
-rw-r--r--app/models/project_services/prometheus_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/project_services/prometheus_service.rb b/app/models/project_services/prometheus_service.rb
index c9df678f97e..217f753f05f 100644
--- a/app/models/project_services/prometheus_service.rb
+++ b/app/models/project_services/prometheus_service.rb
@@ -60,7 +60,7 @@ class PrometheusService < MonitoringService
def deployment_metrics(deployment)
metrics = with_reactive_cache(Gitlab::Prometheus::Queries::DeploymentQuery.name, deployment.id, &method(:rename_data_to_metrics))
- metrics&.merge(deployment_time: created_at.to_i) || {}
+ metrics&.merge(deployment_time: deployment.created_at.to_i) || {}
end
def additional_environment_metrics(environment)