Class: Gitlab::CycleAnalytics::PlanEventFetcher

Inherits:
BaseEventFetcher show all
Includes:
PlanHelper
Defined in:
lib/gitlab/cycle_analytics/plan_event_fetcher.rb

Constant Summary

Constants inherited from BaseEventFetcher

BaseEventFetcher::MAX_EVENTS

Constants included from Database::Median

Database::Median::NotSupportedError

Instance Attribute Summary

Attributes inherited from BaseEventFetcher

#options, #projections, #query, #stage

Instance Method Summary collapse

Methods included from PlanHelper

#limit_query, #stage_query

Methods inherited from BaseEventFetcher

#fetch, #order

Methods included from GroupProjectsProvider

#group, #project, #projects

Methods included from Database::DateTime

#subtract_datetimes, #subtract_datetimes_diff

Methods included from Database::Median

#extract_median, #extract_medians, #median_datetime, #median_datetimes, #pg_median_datetime_sql

Methods included from MetricsTables

#build_table, #issue_metrics_table, #issue_table, #mr_closing_issues_table, #mr_diff_commits_table, #mr_diff_table, #mr_metrics_table, #mr_table, #projects_table, #routes_table, #user_table

Constructor Details

#initialize(*args) ⇒ PlanEventFetcher

Returns a new instance of PlanEventFetcher.


8
9
10
11
12
13
14
15
16
# File 'lib/gitlab/cycle_analytics/plan_event_fetcher.rb', line 8

def initialize(*args)
  @projections = [issue_table[:title],
                  issue_table[:iid],
                  issue_table[:id],
                  issue_table[:created_at],
                  issue_table[:author_id]]

  super(*args)
end