diff options
author | James Lopez <james@jameslopez.es> | 2016-11-04 12:57:23 +0100 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2016-11-17 08:22:57 +0100 |
commit | bd31f24c548878597322b34965789c88ff8d2dde (patch) | |
tree | 10d9e8f425506f3f1097b1d3e6a1cc50ad3a22cf /lib/gitlab/cycle_analytics/events_query.rb | |
parent | eccb6a5e920920bda11104ca608e652f84a944bf (diff) | |
download | gitlab-ce-bd31f24c548878597322b34965789c88ff8d2dde.tar.gz |
Added branch option to test events
Also fixed test events ordering issue
Diffstat (limited to 'lib/gitlab/cycle_analytics/events_query.rb')
-rw-r--r-- | lib/gitlab/cycle_analytics/events_query.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/gitlab/cycle_analytics/events_query.rb b/lib/gitlab/cycle_analytics/events_query.rb index f78272a4108..7a27e099be3 100644 --- a/lib/gitlab/cycle_analytics/events_query.rb +++ b/lib/gitlab/cycle_analytics/events_query.rb @@ -3,9 +3,10 @@ module Gitlab class EventsQuery include MetricsFetcher - def initialize(project:, from:) + def initialize(project:, options: {}) @project = project - @from = from + @from = options[:from] + @branch = options[:branch] end def execute(stage, &block) |