summaryrefslogtreecommitdiff
path: root/lib/gitlab/cycle_analytics/review_helper.rb
diff options
context:
space:
mode:
authorGosia Ksionek <mksionek@gitlab.com>2019-06-17 13:17:18 +0000
committerJames Lopez <james@gitlab.com>2019-06-17 13:17:18 +0000
commit976b8b5391199f18a099021639e206f8acc52008 (patch)
tree64b0947ff325b54fe841cd5f10619628ecd6de80 /lib/gitlab/cycle_analytics/review_helper.rb
parentea1aa785733d654ac11b239b121ba2acbc183406 (diff)
downloadgitlab-ce-976b8b5391199f18a099021639e206f8acc52008.tar.gz
Fix plan stage query
Fix plan stage query and the way it is displayed
Diffstat (limited to 'lib/gitlab/cycle_analytics/review_helper.rb')
-rw-r--r--lib/gitlab/cycle_analytics/review_helper.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/gitlab/cycle_analytics/review_helper.rb b/lib/gitlab/cycle_analytics/review_helper.rb
new file mode 100644
index 00000000000..c53249652b5
--- /dev/null
+++ b/lib/gitlab/cycle_analytics/review_helper.rb
@@ -0,0 +1,11 @@
+# frozen_string_literal: true
+
+module Gitlab
+ module CycleAnalytics
+ module ReviewHelper
+ def stage_query(project_ids)
+ super(project_ids).where(mr_metrics_table[:merged_at].not_eq(nil))
+ end
+ end
+ end
+end