diff --git a/app/uat_actions/uat_actions/generate_plates.rb b/app/uat_actions/uat_actions/generate_plates.rb index 54bab9d288..96ddd1329a 100644 --- a/app/uat_actions/uat_actions/generate_plates.rb +++ b/app/uat_actions/uat_actions/generate_plates.rb @@ -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 diff --git a/app/uat_actions/uat_actions/generate_sample_manifest.rb b/app/uat_actions/uat_actions/generate_sample_manifest.rb index d68761925e..aa562d653f 100644 --- a/app/uat_actions/uat_actions/generate_sample_manifest.rb +++ b/app/uat_actions/uat_actions/generate_sample_manifest.rb @@ -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 )