Class: WorkCompletion
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- WorkCompletion
- Includes:
- Uuid::Uuidable
- Defined in:
- app/models/work_completion.rb
Overview
A WorkCompletion can be used to pass library creation requests. It will also link the upstream and downstream requests to the correct receptacles. It takes the following:
target: The labware on which the library has been completed.
user: the user performing the action
submissions: an array of submissions which will be passed (although this is done through the request ids on the aliquots, not directly through the submissions).
Defined Under Namespace
Classes: LabwareCompletion, PlateCompletion, TubeCompletion
Constant Summary collapse
- REQUEST_INCLUDES =
These includes are required for library passing
[ { submission: :orders }, { request_type: :request_type_validators }, { target_asset: :aliquots }, :order, :request_events, :request_metadata ].freeze
Method Summary
Methods included from Uuid::Uuidable
included, #unsaved_uuid!, #uuid
Methods inherited from ApplicationRecord
alias_association, convert_labware_to_receptacle_for, find_by_id_or_name, find_by_id_or_name!