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

27 lines
591 B
Ruby
Raw Normal View History

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 legend
2017-04-27 01:04:33 +00:00
N_("Related Commits")
end
2016-12-02 16:09:29 +00:00
def description
"Time before an issue starts implementation"
end
end
end
end