Module: Gitlab::CycleAnalytics::TestHelper

Included in:
TestEventFetcher, TestStage
Defined in:
lib/gitlab/cycle_analytics/test_helper.rb

Instance Method Summary collapse

Instance Method Details

#stage_query(project_ids) ⇒ Object


6
7
8
9
10
11
12
# File 'lib/gitlab/cycle_analytics/test_helper.rb', line 6

def stage_query(project_ids)
  if branch
    super(project_ids).where(build_table[:ref].eq(branch))
  else
    super(project_ids)
  end
end