Class: Gitlab::Analytics::CycleAnalytics::StageEvents::PlanStageStart
- Inherits:
-
MetricsBasedStageEvent
- Object
- StageEvent
- MetricsBasedStageEvent
- Gitlab::Analytics::CycleAnalytics::StageEvents::PlanStageStart
- Defined in:
- lib/gitlab/analytics/cycle_analytics/stage_events/plan_stage_start.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#apply_query_customization(query) ⇒ Object
rubocop: disable CodeReuse/ActiveRecord.
- #column_list ⇒ Object
- #object_type ⇒ Object
Methods inherited from MetricsBasedStageEvent
#apply_negated_query_customization, #include_in
Methods inherited from StageEvent
#apply_negated_query_customization, #hash_code, #html_description, #include_in, #initialize, label_based?, #timestamp_projection
Methods included from Utils::Override
#extended, extensions, #included, #method_added, #override, #prepended, #queue_verification, verify!
Methods included from CycleAnalytics::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::Analytics::CycleAnalytics::StageEvents::StageEvent
Class Method Details
.identifier ⇒ Object
12 13 14 |
# File 'lib/gitlab/analytics/cycle_analytics/stage_events/plan_stage_start.rb', line 12 def self.identifier :plan_stage_start end |
.name ⇒ Object
8 9 10 |
# File 'lib/gitlab/analytics/cycle_analytics/stage_events/plan_stage_start.rb', line 8 def self.name s_("CycleAnalyticsEvent|Issue first associated with a milestone or first added to a board") end |
Instance Method Details
#apply_query_customization(query) ⇒ Object
rubocop: disable CodeReuse/ActiveRecord
28 29 30 31 32 |
# File 'lib/gitlab/analytics/cycle_analytics/stage_events/plan_stage_start.rb', line 28 def apply_query_customization(query) super .where(issue_metrics_table[:first_added_to_board_at].not_eq(nil).or(issue_metrics_table[:first_associated_with_milestone_at].not_eq(nil))) .where(issue_metrics_table[:first_mentioned_in_commit_at].not_eq(nil)) end |
#column_list ⇒ Object
20 21 22 23 24 25 |
# File 'lib/gitlab/analytics/cycle_analytics/stage_events/plan_stage_start.rb', line 20 def column_list [ issue_metrics_table[:first_associated_with_milestone_at], issue_metrics_table[:first_added_to_board_at] ] end |
#object_type ⇒ Object
16 17 18 |
# File 'lib/gitlab/analytics/cycle_analytics/stage_events/plan_stage_start.rb', line 16 def object_type Issue end |