diff options
author | Gosia Ksionek <mksionek@gitlab.com> | 2019-06-17 13:17:18 +0000 |
---|---|---|
committer | James Lopez <james@gitlab.com> | 2019-06-17 13:17:18 +0000 |
commit | 976b8b5391199f18a099021639e206f8acc52008 (patch) | |
tree | 64b0947ff325b54fe841cd5f10619628ecd6de80 /lib/gitlab/cycle_analytics/review_helper.rb | |
parent | ea1aa785733d654ac11b239b121ba2acbc183406 (diff) | |
download | gitlab-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.rb | 11 |
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 |