Class: Flightdeck::JobsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/flightdeck/jobs_controller.rb

Constant Summary

Constants inherited from ApplicationController

ApplicationController::UNCONFIGURED_MESSAGE

Instance Method Summary collapse

Methods inherited from ApplicationController

host_authenticated?

Instance Method Details

#indexObject



8
9
10
11
12
13
# File 'app/controllers/flightdeck/jobs_controller.rb', line 8

def index
  @query = JobsQuery.new(**list_filters, state: state_param, before_id: params[:before_id])
  @rows = @query.rows
  @state_counts = JobsQuery.state_counts(**list_filters)
  @groups = GroupedFailures.build(@rows) if state_param == :failed && group_failures?
end

#showObject



15
16
17
# File 'app/controllers/flightdeck/jobs_controller.rb', line 15

def show
  @job = JobDetail.find(params[:id])
end