Sha256: ebfebb7d158d9b58bff35c260845d88c31aaed9c140fd8d11dc86e6ac830f3dd

Contents?: true

Size: 674 Bytes

Versions: 26

Compression:

Stored size: 674 Bytes

Contents

require_dependency "coalescing_panda/application_controller"

module CoalescingPanda
  class CanvasBatchesController < ApplicationController
    def show
      @batch = CanvasBatch.find(params[:id])
      render @batch
    end

    def retrigger
      @batch = CanvasBatch.find(params[:id])
      @batch.status = 'Queued'
      @batch.save
      worker = CoalescingPanda::Workers::CourseMiner.new(@batch.context, @batch.options)
      current_session_data[:canvas_batch_id] = worker.batch.id
      worker.start(true)
      redirect_to :back
    end

    def clear_batch_session
      current_session_data[:canvas_batch_id] = nil
      render nothing: true
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
coalescing_panda-5.3.0 app/controllers/coalescing_panda/canvas_batches_controller.rb
coalescing_panda-5.2.2 app/controllers/coalescing_panda/canvas_batches_controller.rb
coalescing_panda-5.2.2.beta1 app/controllers/coalescing_panda/canvas_batches_controller.rb
coalescing_panda-5.2.1 app/controllers/coalescing_panda/canvas_batches_controller.rb
coalescing_panda-5.2.0 app/controllers/coalescing_panda/canvas_batches_controller.rb
coalescing_panda-5.2.0.beta2 app/controllers/coalescing_panda/canvas_batches_controller.rb
coalescing_panda-5.2.0.beta1 app/controllers/coalescing_panda/canvas_batches_controller.rb
coalescing_panda-5.1.13 app/controllers/coalescing_panda/canvas_batches_controller.rb
coalescing_panda-5.1.12 app/controllers/coalescing_panda/canvas_batches_controller.rb
coalescing_panda-5.1.11 app/controllers/coalescing_panda/canvas_batches_controller.rb
coalescing_panda-5.1.10 app/controllers/coalescing_panda/canvas_batches_controller.rb
coalescing_panda-5.1.9 app/controllers/coalescing_panda/canvas_batches_controller.rb
coalescing_panda-5.1.8 app/controllers/coalescing_panda/canvas_batches_controller.rb
coalescing_panda-5.1.7 app/controllers/coalescing_panda/canvas_batches_controller.rb
coalescing_panda-5.1.6 app/controllers/coalescing_panda/canvas_batches_controller.rb
coalescing_panda-5.1.5 app/controllers/coalescing_panda/canvas_batches_controller.rb
coalescing_panda-5.1.4 app/controllers/coalescing_panda/canvas_batches_controller.rb
coalescing_panda-5.1.3.beta.2 app/controllers/coalescing_panda/canvas_batches_controller.rb
coalescing_panda-5.1.3.beta.1 app/controllers/coalescing_panda/canvas_batches_controller.rb
coalescing_panda-5.1.3 app/controllers/coalescing_panda/canvas_batches_controller.rb