gitlab-org--gitlab-foss/lib/gitlab/cycle_analytics/issue_stage.rb

31 lines
626 B
Ruby
Raw Normal View History

module Gitlab
module CycleAnalytics
class IssueStage < BaseStage
def start_time_attrs
@start_time_attrs ||= issue_table[:created_at]
end
2016-12-02 16:09:29 +00:00
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
2016-12-02 16:09:29 +00:00
:issue
end
def title
s_('CycleAnalyticsStage|Issue')
end
def legend
2017-05-03 17:40:21 +00:00
_("Related Issues")
end
2016-12-02 16:09:29 +00:00
def description
_("Time before an issue gets scheduled")
end
end
end
end