diff options
author | Małgorzata Ksionek <mksionek@gitlab.com> | 2019-07-06 22:15:13 +0200 |
---|---|---|
committer | Małgorzata Ksionek <mksionek@gitlab.com> | 2019-07-15 14:53:18 +0200 |
commit | d4fa69c9fe0e20f75cdcc3363865ec453d7e02db (patch) | |
tree | 108a912ed3ee856b73aef74e985053e098c5dfad /lib/gitlab/cycle_analytics/base_event_fetcher.rb | |
parent | c7006b186f339bdf7a4dfb8213ffae3629f9a4ac (diff) | |
download | gitlab-ce-adjust-group-level-analytics-to-accept-multiple-ids.tar.gz |
Add basic project extractionadjust-group-level-analytics-to-accept-multiple-ids
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.rb | 13 |
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 |