Class: MultiplexedLibraryCreationPipeline
- Inherits:
-
LibraryCreationPipeline
- Object
- ActiveRecord::Base
- ApplicationRecord
- Pipeline
- LibraryCreationPipeline
- MultiplexedLibraryCreationPipeline
- Includes:
- Pipeline::InboxGroupedBySubmission
- Defined in:
- app/models/multiplexed_library_creation_pipeline.rb
Overview
rubocop:todo Style/Documentation
Constant Summary
Constants inherited from Pipeline
Pipeline::ALWAYS_SHOW_RELEASE_ACTIONS
Instance Method Summary collapse
-
#validation_of_batch_for_completion(batch) ⇒ Object
For a batch to be valid for completion in this pipeline it must have had the tags assigned to the target assets of the requests.
Methods included from Pipeline::InboxGroupedBySubmission
Methods inherited from LibraryCreationPipeline
Methods inherited from Pipeline
#all_requests_from_submissions_selected?, #allow_tag_collision_on_tagging_task?, #completed_request_as_part_of_release_batch, #custom_message, #detach_request_from_batch, #extract_requests_from_input_params, #has_controls?, #input_labware, #is_read_length_consistent_for_batch?, #on_start_batch, #output_labware, #pick_information?, #post_finish_batch, #post_release_batch, #request_actions, #request_count_in_inbox, #request_types_including_controls, #requests_in_inbox, #robot_verified!, #update_detached_request
Methods included from SharedBehaviour::Named
Methods included from Pipeline::BatchValidation
Methods included from Uuid::Uuidable
included, #unsaved_uuid!, #uuid
Methods inherited from ApplicationRecord
convert_labware_to_receptacle_for, find_by_id_or_name, find_by_id_or_name!
Methods included from Squishify
Methods included from Warren::BroadcastMessages
#broadcast, included, #queue_associated_for_broadcast, #queue_for_broadcast, #warren
Instance Method Details
#validation_of_batch_for_completion(batch) ⇒ Object
For a batch to be valid for completion in this pipeline it must have had the tags assigned to the target assets of the requests.
9 10 11 12 13 14 15 |
# File 'app/models/multiplexed_library_creation_pipeline.rb', line 9 def validation_of_batch_for_completion(batch) return true unless batch.requests.any? do |r| r.target_asset.aliquots.any? { |a| a.tag.nil? } end batch.errors.add(:base, 'This batch appears to have not been properly tagged') end |