diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-06-14 12:10:13 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-06-14 12:10:13 +0000 |
commit | b82c4935ecc86d1429710163287f5bd7d75bf226 (patch) | |
tree | 804f3e490810b4e4c6b9bbe1c9aeadaf3ca7de32 /lib/gitlab/cycle_analytics/summary/deployment_frequency.rb | |
parent | 0e0ec3ddd5528b1d2114606158344226debabdc9 (diff) | |
download | gitlab-ce-b82c4935ecc86d1429710163287f5bd7d75bf226.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/cycle_analytics/summary/deployment_frequency.rb')
-rw-r--r-- | lib/gitlab/cycle_analytics/summary/deployment_frequency.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/gitlab/cycle_analytics/summary/deployment_frequency.rb b/lib/gitlab/cycle_analytics/summary/deployment_frequency.rb index 00676a02a6f..1947866d772 100644 --- a/lib/gitlab/cycle_analytics/summary/deployment_frequency.rb +++ b/lib/gitlab/cycle_analytics/summary/deployment_frequency.rb @@ -6,10 +6,10 @@ module Gitlab class DeploymentFrequency < Base include SummaryHelper - def initialize(deployments:, from:, to: nil, project: nil) + def initialize(deployments:, options:, project: nil) @deployments = deployments - super(project: project, from: from, to: to) + super(project: project, options: options) end def title @@ -17,7 +17,7 @@ module Gitlab end def value - @value ||= frequency(@deployments, @from, @to || Time.now) + @value ||= frequency(@deployments, @options[:from], @options[:to] || Time.current) end def unit |