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

Change to populate_wtsi_irods_groups.pl for empty data access groups #310

Merged
merged 2 commits into from
Aug 9, 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
6 changes: 6 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
Unreleased

- Change populate_wtsi_irods_groups.pl to only populate iRODS
study access groups with all seq iRODS users for SS studies
with empty data access where the study is not managed e.g.
submitted to EGA not ENA

Release 3.23.0 (2024-07-25)

Expand Down
14 changes: 8 additions & 6 deletions bin/populate_wtsi_irods_groups.pl
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@

our $VERSION = '';

Readonly::Scalar my $MANAGED_TYPE => q{managed};

my $what_on_earth =<<'WOE';

Script to update WTSI iRODS systems with groups corresponding to
Expand All @@ -38,11 +40,11 @@
and iRODS public group is used as the membership of the corresponding
iRODS group.

If no data_access_group is set on the study, then if the study is
associated with sequencing the members of the iRODS group will be set
to the public group, else if the study is not associated with
sequencing tracked in the ML warehouse, the iRODS group will be left
empty (except for the iRODS groupadmin user).
If no data_access_group is set on the Sequencescape study, then if the
study doesn't have a data release type of managed the members of the
iRODS group will be set to the public group, else if the study has a
data release type of managed the iRODS group will be left empty (except
for the iRODS groupadmin user).

Studies which are marked as have samples contaminated with human which
should be removed will have an ss_<study_id>_human iRODS group created
Expand Down Expand Up @@ -163,7 +165,7 @@ sub _uid_to_irods_uid {
@members = map { _uid_to_irods_uid($_) }
map { @{ $group2uids->{$_} || [$_] } } @dags;
}
elsif ($is_seq) {
elsif ($study->data_release_strategy ne $MANAGED_TYPE) {
@members = @public;
}
else {
Expand Down
Loading