Class: Gitlab::CycleAnalytics::PlanStage

Inherits:
BaseStage
  • Object
show all
Includes:
PlanHelper
Defined in:
lib/gitlab/cycle_analytics/plan_stage.rb

Constant Summary

Constants included from Database::Median

Database::Median::NotSupportedError

Instance Attribute Summary

Attributes inherited from BaseStage

#options

Instance Method Summary collapse

Methods included from PlanHelper

#limit_query, #stage_query

Methods inherited from BaseStage

#as_json, #cte_table, #events, #group_median, #initialize, #interval_query, #median_query, #project_median

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

This class inherits a constructor from Gitlab::CycleAnalytics::BaseStage

Instance Method Details

#descriptionObject


29
30
31
# File 'lib/gitlab/cycle_analytics/plan_stage.rb', line 29

def description
  _("Time before an issue starts implementation")
end

#end_time_attrsObject


13
14
15
# File 'lib/gitlab/cycle_analytics/plan_stage.rb', line 13

def end_time_attrs
  @end_time_attrs ||= issue_metrics_table[:first_mentioned_in_commit_at]
end

#legendObject


25
26
27
# File 'lib/gitlab/cycle_analytics/plan_stage.rb', line 25

def legend
  _("Related Issues")
end

#nameObject


17
18
19
# File 'lib/gitlab/cycle_analytics/plan_stage.rb', line 17

def name
  :plan
end

#start_time_attrsObject


8
9
10
11
# File 'lib/gitlab/cycle_analytics/plan_stage.rb', line 8

def start_time_attrs
  @start_time_attrs ||= [issue_metrics_table[:first_associated_with_milestone_at],
                         issue_metrics_table[:first_added_to_board_at]]
end

#titleObject


21
22
23
# File 'lib/gitlab/cycle_analytics/plan_stage.rb', line 21

def title
  s_('CycleAnalyticsStage|Plan')
end