diff options
Diffstat (limited to 'lib/gitlab/cycle_analytics/review_stage.rb')
-rw-r--r-- | lib/gitlab/cycle_analytics/review_stage.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/gitlab/cycle_analytics/review_stage.rb b/lib/gitlab/cycle_analytics/review_stage.rb new file mode 100644 index 00000000000..ec9f07319e8 --- /dev/null +++ b/lib/gitlab/cycle_analytics/review_stage.rb @@ -0,0 +1,11 @@ +module Gitlab + module CycleAnalytics + class ReviewStage < BaseStage + def median + @fetcher.calculate_metric(:review, + MergeRequest.arel_table[:created_at], + MergeRequest::Metrics.arel_table[:merged_at]) + end + end + end +end |