debian-mirror-gitlab/lib/gitlab/cycle_analytics/issue_stage.rb

35 lines
684 B
Ruby
Raw Normal View History

2019-02-15 15:39:39 +05:30
# frozen_string_literal: true
2017-08-17 22:00:37 +05:30
module Gitlab
module CycleAnalytics
class IssueStage < BaseStage
2019-09-04 21:01:54 +05:30
include IssueHelper
2017-08-17 22:00:37 +05:30
def start_time_attrs
@start_time_attrs ||= issue_table[:created_at]
end
def end_time_attrs
@end_time_attrs ||= [issue_metrics_table[:first_associated_with_milestone_at],
issue_metrics_table[:first_added_to_board_at]]
end
def name
:issue
end
def title
s_('CycleAnalyticsStage|Issue')
end
def legend
_("Related Issues")
end
def description
_("Time before an issue gets scheduled")
end
end
end
end