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

Deleting team breaks the tasks still linked to it #5077

Closed
fm3 opened this issue Jan 22, 2021 · 1 comment · Fixed by #5108
Closed

Deleting team breaks the tasks still linked to it #5077

fm3 opened this issue Jan 22, 2021 · 1 comment · Fixed by #5108
Assignees

Comments

@fm3
Copy link
Member

fm3 commented Jan 22, 2021

When a team is deleted, tasks associated to it can no longer be loaded. The same may be true for other database entries. We need to develop a strategy for how to change the dependant entries.

@fm3 fm3 self-assigned this Jan 26, 2021
@fm3
Copy link
Member Author

fm3 commented Jan 27, 2021

There are a couple of options here

  • Disallow deleting teams completely

  • Disallow deleting teams if they are linked to any annotation, project or tasktype

  • Delete annotations, projects and tasktypes linked to the team when deleting it

  • Set team to null for annotations, tasktypes and projects (means only admin can see them, and nobody gets their tasks)
    → problem: they are no longer linked to an organization, meaning even the admin cannot access them. as good as deleting
    → todo: open tasks become inaccessible but are still listed for their owners (annotation access query needs to be adapted)

  • Only “archive” the team (meaning it is not listed, and removed from users and datasets, but annotations, tasktypes and projects can still have it
    → todo: open tasks become inaccessible but are still listed for their owners (annotation access query needs to be adapted OR cancel them in the archiving call)
    → problem: user may be confused when editing task type / project that still have an archived team. May need warning message when viewing task type / project

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant