Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

send program name to the mlwh #4265

Merged
merged 2 commits into from
Aug 12, 2024
Merged
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
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 @@
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') }

Check warning on line 103 in app/models/api/study_io.rb

View check run for this annotation

Codecov / codecov/patch

app/models/api/study_io.rb#L103

Added line #L103 was not covered by tests
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
Loading