Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions app/models/ultima_sequencing_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ class UltimaSequencingRequest < SequencingRequest
# id_pool_lims, and request_order.
# @return [String] unique wafer ID for LIMS
def id_wafer_lims
return nil unless batch && source_labware && position

"#{batch.id}_#{source_labware.human_barcode}_#{position}"
end
end
6 changes: 6 additions & 0 deletions app/resources/api/v2/request_resource.rb
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ class RequestResource < BaseResource
# @note This attribute is read-only.
attribute :library_type, readonly: true

attribute :id_wafer_lims, readonly: true

###
# Relationships
###
Expand Down Expand Up @@ -204,6 +206,10 @@ def pre_capture_pool_id
def library_type
_model.try(:library_type)
end

def id_wafer_lims
_model.try(:id_wafer_lims)
end
end
end
end
Loading