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

Automate adding DCC admins group to workspaces and managed groups #680

Merged
merged 7 commits into from
Aug 8, 2024

Conversation

amstilp
Copy link
Contributor

@amstilp amstilp commented Aug 8, 2024

  • Add Workspace adapter methods to automatically share any workspaces that was created or imported with the DCC admins group
  • Add ManagedGroup adapter methods to automatically add the DCC admins group to any managed group created via the ManagedGroupCreate view

amstilp added 6 commits August 8, 2024 14:55
This setting will be used to automate some tasks, eg sharing
workspaces with the admin group or adding it as an admin of any
managed group that is created.
This adapter shares a workspace with the admins group upon creation.
This method checks if the workspace is shared with the admins as
an owner. If not, it shares it; if it is shared but not as an owner,
it updates the sharing.
This way, all workspaces get automatically shared with the admins
group.
Add a new adapter that automatically shares any ManagedGroup created
via the app view with the GREGOR_DCC_ADMINS group.
Copy link

codecov bot commented Aug 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.18%. Comparing base (9831820) to head (ce07370).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #680      +/-   ##
==========================================
+ Coverage   93.96%   94.18%   +0.22%     
==========================================
  Files         124      124              
  Lines        5485     5693     +208     
==========================================
+ Hits         5154     5362     +208     
  Misses        331      331              

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

A couple lines of the adapter method were not covered in tests; fix
that.
@amstilp amstilp merged commit d43c139 into main Aug 8, 2024
10 checks passed
@amstilp amstilp deleted the feature/adapter-automation branch August 8, 2024 23:31
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