Class: NpgActions::AssetsController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/npg_actions/assets_controller.rb

Overview

Takes QC decisions on lanes from NPG and records the information in Sequencescape, passing the requests and creating events as required.

Constant Summary collapse

NPGActionInvalid =

Raised if an action is performed which contradicts a previous one

Class.new(StandardError)

Instance Method Summary collapse

Instance Method Details

#failObject

POST /npg_actions/assets/:asset_id/pass



20
21
22
# File 'app/controllers/npg_actions/assets_controller.rb', line 20

def fail
  action_for_qc_state('fail')
end

#passObject

POST /npg_actions/assets/:asset_id/fail



25
26
27
# File 'app/controllers/npg_actions/assets_controller.rb', line 25

def pass
  action_for_qc_state('pass')
end