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

Add organization deletion workflow #642

Open
dankolbman opened this issue May 10, 2021 · 0 comments
Open

Add organization deletion workflow #642

dankolbman opened this issue May 10, 2021 · 0 comments
Labels
feature New functionality

Comments

@dankolbman
Copy link
Contributor

Because deletion of an entire organization involves a cascade of deletions to the studies and then documents, care needs to be taken when deleting an organization.
The first option is to implement a deleteOrganization which organization administrators may trigger. This mutation would schedule a deletion task for some number of days after being triggered which would automatically run and remove the organization and all related models.

The second option is to have a requestDeleteOrganization which organization administrators may trigger. This would notify superusers of the request to delete. The superusers may then trigger deleteOrganization on an organization which has been requested for deletion or they may denyDeleteOrganization which will unset the requested for deletion status on the organization.

The first one is the simplest solution which provides the organization owners full control over their data.
The second is more complicated and requires that we implement email notifications, superuser concepts, and a dashboard to review organizations that are requested for deletion. This also removes some power of the organization owners over their data which may be a compliance and privacy issue.

@dankolbman dankolbman added the feature New functionality label May 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New functionality
Projects
None yet
Development

No branches or pull requests

1 participant