Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop' into 4095-y24-065-creat…
Browse files Browse the repository at this point in the history
…e-a-script-to-backfill-the-labware-tables-new-retention_instruction-column
  • Loading branch information
dasunpubudumal committed May 16, 2024
2 parents bcd8be2 + be847d3 commit 45e04fa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion app/uat_actions/uat_actions/generate_plates.rb
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,8 @@ def build_sample(sample_name, plate)
sample_metadata_attributes: {
supplier_name: sample_name,
cohort: "Cohort#{plate.human_barcode}",
sample_description: "SD-#{plate.human_barcode}"
sample_description: "SD-#{plate.human_barcode}",
sample_common_name: 'human'
}
)
end
Expand Down
4 changes: 3 additions & 1 deletion app/uat_actions/uat_actions/generate_sample_manifest.rb
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,12 @@ def supplier
def create_sample(sample_name, sample_manifest)
Sample.create!(
name: sample_name,
sanger_sample_id: sample_name,
sample_metadata_attributes: {
supplier_name: sample_name,
collected_by: UatActions::StaticRecords.collection_site,
donor_id: "#{sample_name}_donor"
donor_id: "#{sample_name}_donor",
sample_common_name: 'human'
},
sample_manifest: sample_manifest
)
Expand Down

0 comments on commit 45e04fa

Please sign in to comment.