From 976b8b5391199f18a099021639e206f8acc52008 Mon Sep 17 00:00:00 2001 From: Gosia Ksionek Date: Mon, 17 Jun 2019 13:17:18 +0000 Subject: Fix plan stage query Fix plan stage query and the way it is displayed --- lib/gitlab/cycle_analytics/review_helper.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 lib/gitlab/cycle_analytics/review_helper.rb (limited to 'lib/gitlab/cycle_analytics/review_helper.rb') 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 -- cgit v1.2.1