Module: Receptacle::DownstreamAliquotsRemoval::Mixin
- Included in:
- Receptacle
- Defined in:
- app/models/receptacle/downstream_aliquots_removal.rb
Overview
Public interface for the downstream aliquots removal functionality, part of the Receptacle interface
Instance Method Summary collapse
-
#allow_to_remove_downstream_aliquots? ⇒ Boolean
Returns a boolean that indicates if it is valid to remove downstream aliquots starting from this one.
Instance Method Details
#allow_to_remove_downstream_aliquots? ⇒ Boolean
Returns a boolean that indicates if it is valid to remove downstream aliquots starting from this one. Current condition (DPL-451) estimates that if the labware has descendants that are involved in a sequencing batch, we do not remove any data from downstream aliquots or from MLWH.
13 14 15 16 |
# File 'app/models/receptacle/downstream_aliquots_removal.rb', line 13 def allow_to_remove_downstream_aliquots? creation_batches = PrivateMethods.creation_batches_for_requests(self) creation_batches.nil? || creation_batches.flatten.uniq.empty? end |