Module: Gitlab::CycleAnalytics::BuildsEventHelper
- Included in:
- StagingEventFetcher, TestEventFetcher
- Defined in:
- lib/gitlab/cycle_analytics/builds_event_helper.rb
Instance Method Summary collapse
Instance Method Details
#events_query ⇒ Object
19 20 21 22 23 |
# File 'lib/gitlab/cycle_analytics/builds_event_helper.rb', line 19 def events_query base_query.join(build_table).on(mr_metrics_table[:pipeline_id].eq(build_table[:commit_id])) super end |
#fetch ⇒ Object
13 14 15 16 17 |
# File 'lib/gitlab/cycle_analytics/builds_event_helper.rb', line 13 def fetch Updater.update!(event_result, from: 'id', to: 'build', klass: ::Ci::Build) super end |
#initialize(*args) ⇒ Object
6 7 8 9 10 11 |
# File 'lib/gitlab/cycle_analytics/builds_event_helper.rb', line 6 def initialize(*args) @projections = [build_table[:id]] @order = build_table[:created_at] super(*args) end |