Class: WorkCompletion

Inherits:
ApplicationRecord show all
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 requests onto the correct wells of the target plate. It takes the following: target: The plate on which the library has been completed. user: the user performing tha action submissions: an array of submissions which will be passed. Requirements: The wells of the target plate are expected to have stock well_links to the plate on which the orignal library_creation requests were made. This provides a means of finding the library creation requests.

Defined Under Namespace

Classes: 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,
:billing_product,
:billing_items,
:request_metadata].freeze

Method Summary

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 Warren::BroadcastMessages

#broadcast, included, #queue_associated_for_broadcast, #queue_for_broadcast, #warren