diff options
author | Pawel Chojnacki <pawel@chojnacki.ws> | 2017-06-22 21:19:55 +0200 |
---|---|---|
committer | Pawel Chojnacki <pawel@chojnacki.ws> | 2017-06-22 21:19:55 +0200 |
commit | e00f487049e811c497ba3780f38f7e1a8572ad97 (patch) | |
tree | 808d99bb2d43f9620fc2074ea9068ec4f8bf0b0d /app | |
parent | 97c42df3b804a37e659c3cda6bd8a52570f31366 (diff) | |
download | gitlab-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.rb | 2 |
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) |