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

33 lines
690 B
Ruby
Raw Normal View History

# frozen_string_literal: true
module Gitlab
module CycleAnalytics
class PlanStage < BaseStage
def start_time_attrs
@start_time_attrs ||= [issue_metrics_table[:first_associated_with_milestone_at],
issue_metrics_table[:first_added_to_board_at]]
end
2016-12-02 16:09:29 +00:00
def end_time_attrs
@end_time_attrs ||= issue_metrics_table[:first_mentioned_in_commit_at]
end
def name
:plan
2016-12-02 16:09:29 +00:00
end
def title
s_('CycleAnalyticsStage|Plan')
end
def legend
2017-05-03 17:40:21 +00:00
_("Related Commits")
end
2016-12-02 16:09:29 +00:00
def description
_("Time before an issue starts implementation")
end
end
end
end