2019-12-04 20:38:33 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Gitlab
|
|
|
|
module Analytics
|
|
|
|
module CycleAnalytics
|
|
|
|
module StageEvents
|
2019-12-26 22:10:19 +05:30
|
|
|
class IssueFirstMentionedInCommit < MetricsBasedStageEvent
|
2019-12-04 20:38:33 +05:30
|
|
|
def self.name
|
|
|
|
s_("CycleAnalyticsEvent|Issue first mentioned in a commit")
|
|
|
|
end
|
|
|
|
|
|
|
|
def self.identifier
|
|
|
|
:issue_first_mentioned_in_commit
|
|
|
|
end
|
|
|
|
|
|
|
|
def object_type
|
|
|
|
Issue
|
|
|
|
end
|
2019-12-21 20:55:43 +05:30
|
|
|
|
|
|
|
def timestamp_projection
|
|
|
|
issue_metrics_table[:first_mentioned_in_commit_at]
|
|
|
|
end
|
2019-12-04 20:38:33 +05:30
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|