summaryrefslogtreecommitdiff
path: root/lib/gitlab/cycle_analytics/base_event_fetcher.rb
diff options
context:
space:
mode:
authorMałgorzata Ksionek <mksionek@gitlab.com>2019-07-06 22:15:13 +0200
committerMałgorzata Ksionek <mksionek@gitlab.com>2019-07-15 14:53:18 +0200
commitd4fa69c9fe0e20f75cdcc3363865ec453d7e02db (patch)
tree108a912ed3ee856b73aef74e985053e098c5dfad /lib/gitlab/cycle_analytics/base_event_fetcher.rb
parentc7006b186f339bdf7a4dfb8213ffae3629f9a4ac (diff)
downloadgitlab-ce-adjust-group-level-analytics-to-accept-multiple-ids.tar.gz
To allow project filtering Prepare summary for accepting multiple groups Modify deploys group summary class Add filtering by project name in issues summary Fix rubocop offences Add changelog entry Change name to id in project filtering Fix rebase problem
Diffstat (limited to 'lib/gitlab/cycle_analytics/base_event_fetcher.rb')
-rw-r--r--lib/gitlab/cycle_analytics/base_event_fetcher.rb13
1 files changed, 1 insertions, 12 deletions
diff --git a/lib/gitlab/cycle_analytics/base_event_fetcher.rb b/lib/gitlab/cycle_analytics/base_event_fetcher.rb
index 96aa799e864..0f5186e06e7 100644
--- a/lib/gitlab/cycle_analytics/base_event_fetcher.rb
+++ b/lib/gitlab/cycle_analytics/base_event_fetcher.rb
@@ -4,6 +4,7 @@ module Gitlab
module CycleAnalytics
class BaseEventFetcher
include BaseQuery
+ include BaseDataExtraction
attr_reader :projections, :query, :stage, :order, :options
@@ -73,18 +74,6 @@ module Gitlab
def serialization_context
{}
end
-
- def projects
- group ? Project.inside_path(group.full_path) : [project]
- end
-
- def group
- @group ||= options.fetch(:group, nil)
- end
-
- def project
- @project ||= options.fetch(:project, nil)
- end
end
end
end