summaryrefslogtreecommitdiff
path: root/lib/gitlab/cycle_analytics/test_stage.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/cycle_analytics/test_stage.rb')
-rw-r--r--lib/gitlab/cycle_analytics/test_stage.rb10
1 files changed, 2 insertions, 8 deletions
diff --git a/lib/gitlab/cycle_analytics/test_stage.rb b/lib/gitlab/cycle_analytics/test_stage.rb
index c31b664148b..4787a906c07 100644
--- a/lib/gitlab/cycle_analytics/test_stage.rb
+++ b/lib/gitlab/cycle_analytics/test_stage.rb
@@ -3,6 +3,8 @@
module Gitlab
module CycleAnalytics
class TestStage < BaseStage
+ include TestHelper
+
def start_time_attrs
@start_time_attrs ||= mr_metrics_table[:latest_build_started_at]
end
@@ -26,14 +28,6 @@ module Gitlab
def description
_("Total test time for all commits/merges")
end
-
- def stage_query(project_ids)
- if @options[:branch]
- super(project_ids).where(build_table[:ref].eq(@options[:branch]))
- else
- super(project_ids)
- end
- end
end
end
end