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

Associate study sites with members groups #648

Merged
merged 6 commits into from
Jul 10, 2024

Conversation

amstilp
Copy link
Contributor

@amstilp amstilp commented Jul 10, 2024

  • Link a StudySite with the corresponding members ManagedGroup on AnVIL
  • Add a new table, UserAccountTable
  • Show the list of member group members on the StudySiteDetail view.
  • If the study site member group is set, show the UserAccountSingleGroupMembershipTable on the StudySiteDetail view. Otherwise, show the UserAccountTable.

amstilp added 6 commits July 10, 2024 13:25
All (or at least most) Study Sites have a members group associated
with them, and members's anvil accounts need to be added to that
group so that they can get data access on AnVIL. The first step in
making this more automated is to link a StudySite with its member
group via a OneToOne field.
Include a link to the member group, if it exists. Also show a table
Accoutns that are part of the member group (and therefore should have
data access).
If member_group is set, use the UserAccountSingleGroupMembershipTable;
otherwise, use a newly-defined table (UserAccountTable). This lets
CC staff see who from the site has a) linked their account and b)
been added to the member group (if it is set).
Copy link

codecov bot commented Jul 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.00%. Comparing base (1059698) to head (bcf962c).

Additional details and impacted files
@@           Coverage Diff            @@
##             main     #648    +/-   ##
========================================
  Coverage   99.00%   99.00%            
========================================
  Files         323      325     +2     
  Lines       30248    30400   +152     
========================================
+ Hits        29946    30098   +152     
  Misses        302      302            

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@amstilp amstilp marked this pull request as ready for review July 10, 2024 23:50
@amstilp amstilp merged commit 54f9201 into main Jul 10, 2024
11 checks passed
@amstilp amstilp deleted the feature/associate-study-sites-with-members-groups branch July 23, 2024 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant