Skip to content

Commit

Permalink
Merge pull request #4265 from sanger/y24-081-save-program-in-mlwh
Browse files Browse the repository at this point in the history
send program name to the mlwh
  • Loading branch information
sabrine33 authored Aug 12, 2024
2 parents 781eeb3 + a483550 commit cbfb3b9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/models/api/study_io.rb
Original file line number Diff line number Diff line change
Expand Up @@ -100,5 +100,6 @@ def render_class
map_attribute_to_json_attribute(:s3_email_list)
map_attribute_to_json_attribute(:data_deletion_period)
map_attribute_to_json_attribute(:contaminated_human_data_access_group)
with_association(:program, lookup_by: :id) { map_attribute_to_json_attribute(:name, 'program') }
end
end
2 changes: 2 additions & 0 deletions spec/models/api/study_io_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
array_express_accession_number: 'AE111',
ega_policy_accession_number: 'EGA222',
ega_dac_accession_number: 'DAC333',
program: create(:program, name: 'General'),
contaminated_human_data_access_group: 'contaminated human data access group test'
}
end
Expand Down Expand Up @@ -53,6 +54,7 @@
's3_email_list' => '[email protected];[email protected]',
'data_deletion_period' => '3 months',
'contaminated_human_data_access_group' => 'contaminated human data access group test',
'program' => 'General',
'manager' => [
{ login: manager.login, email: manager.email, name: manager.name },
{ login: manager2.login, email: manager2.email, name: manager2.name }
Expand Down

0 comments on commit cbfb3b9

Please sign in to comment.