Module: Pipeline::GroupByParent

Extended by:
ActiveSupport::Concern
Included in:
CherrypickingPipeline
Defined in:
app/models/pipeline/group_by_parent.rb

Overview

Pipelines which group by parent typically have plate inputs, and ensure that they are all processed together

Instance Method Summary collapse

Instance Method Details

#extract_requests_from_input_params(params) ⇒ Object



26
27
28
29
# File 'app/models/pipeline/group_by_parent.rb', line 26

def extract_requests_from_input_params(params)
  selected_groups = params.fetch('request_group')
  grouping_parser.all(selected_keys_from(selected_groups))
end

#input_labware(requests) ⇒ Object



12
13
14
# File 'app/models/pipeline/group_by_parent.rb', line 12

def input_labware(requests)
  labware_report(:requests_as_source, requests, group_by: groups)
end

#output_labware(requests) ⇒ Object



16
17
18
# File 'app/models/pipeline/group_by_parent.rb', line 16

def output_labware(requests)
  labware_report(:requests_as_target, requests)
end

#requests_in_inbox(_show_held_requests = true) ⇒ Object

Raises:

  • (StandardError)


20
21
22
23
24
# File 'app/models/pipeline/group_by_parent.rb', line 20

def requests_in_inbox(_show_held_requests = true)
  # @note This has been added while I refactor the pipeline inboxes. Ideally we'll
  #       eventually unify their interfaces
  raise StandardError, 'Use the Presenters::GroupedPipelineInboxPresenter'
end