diff options
author | James Lopez <james@jameslopez.es> | 2016-12-09 17:28:08 +0300 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2017-01-17 13:32:55 +0300 |
commit | 1b220df56d935f6f9560bdb54f744f17ecfa035b (patch) | |
tree | 1581c0b79b34342520006cda0aec7a683b177660 /lib/gitlab/cycle_analytics | |
parent | 30c6703f0afbf570ca3e3613a55afcbc7094c4eb (diff) |
fix bug retrieving medians
Diffstat (limited to 'lib/gitlab/cycle_analytics')
-rw-r--r-- | lib/gitlab/cycle_analytics/base_stage.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/cycle_analytics/base_stage.rb b/lib/gitlab/cycle_analytics/base_stage.rb index afec16d1818..9143792e044 100644 --- a/lib/gitlab/cycle_analytics/base_stage.rb +++ b/lib/gitlab/cycle_analytics/base_stage.rb @@ -35,7 +35,7 @@ module Gitlab # cycle analytics stage. interval_query = Arel::Nodes::As.new( cte_table, - subtract_datetimes(base_query, @start_time_attrs, @end_time_attrs, name.to_s)) + subtract_datetimes(base_query.dup, @start_time_attrs, @end_time_attrs, name.to_s)) median_datetime(cte_table, interval_query, name) end |