Module: Pipeline::InboxGroupedBySubmission

Included in:
CherrypickForPulldownPipeline, CherrypickPipeline, GenotypingPipeline, MultiplexedLibraryCreationPipeline, PacBioSequencingPipeline
Defined in:
app/models/pipeline/inbox_grouped_by_submission.rb

Overview

A pipeline that has its inbox grouped by submission needs to provide specific paging capabilities. All requests for a submission must appear on the same page, i.e. if a submission has 200 requests and there are only 100 allowed per page, then all of these requests must appear on a page and not across two.

Defined Under Namespace

Modules: Pagination

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object


6
7
8
9
# File 'app/models/pipeline/inbox_grouped_by_submission.rb', line 6

def self.included(base)
  base.has_many :inbox, class_name: 'Request', extend: [Pipeline::RequestsInStorage, Pagination]
  base.group_by_submission = true
end