-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Allow users to delete teams #5066
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
Comments
Just a question: Can instance admins delete any teams, even without any projects, or do they need to manually delete it at database-side? |
Hi @ajhalili2006! Currently this is not possible but it definitely makes sense to add this feature along the way. Added #5069 to track this feature request. 💯 We currently only surface Users and Workspaces on the Admin pages. We could consider surfacing Teams and Projects in the future as this could be helpful for debugging issues or helping out users. In the meantime, we're also considering a way to impersonate users as an instance admin, see #5068. |
We should introduce a settings page, where the team can be deleted similarly to how an account is deleted. |
see also #5067 |
/schedule |
@JanKoehnlein: Issue scheduled in the meta team (WIP: 0) In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@gtsiolis Should we go with this proposal for now? Although it can indeed be confusing that a team is deleted on a projects page. One would expect that the dropdown would include options for the project.. |
I'll unassign myself for now while we decide on an approach 🙏🏽 |
Sorry accidentally clicked the close button 🤦🏻♀️ |
/assign @laushinka |
Posting below the new design specs for team deletion flow. Cc @laushinka FWIW, in contrast with the specs initially added in the isue description, the new specs follow the existing pattern of tabs to surface projects settings that currently include only team deletion action. Future additions to this project settings page could include team renaming (see #5067), project-level environement variables (see #4456), etc. Things to take into account:
See design specs. |
A couple of follow-up questions:
|
We for sure want to track that event. I think it would automatically be tracked as we are tracking all buttons? Also deleting a team implies deleting its projects and the workspaces of all the associated users. So there needs to be a big warning around this, telling you about the impact including details of number of workspaces and projects that will be deleted. |
I think they should be soft-deleted but we need to make after deletion they no longer block their name from being used again. |
@svenefftinge After discussing with @AlexTugarev, for this first iteration it could be enough to have the team and its associated projects marked as deleted, because workspaces will be garbage-collected eventually. |
Ok, good. I like making this a small improvement for now. FWIW pinned workspaces would never be deleted through GC, but I think this ok and provides some additional motivation to further improve this in a second round. :-) |
@laushinka looks like our process doesn't support reopening issues that have been automatically closed. Please add another issue and PR for your fixes and schedule it in groundwork. |
@JanKoehnlein Yes this issue was opened. I think it's correct to leave this one closed. |
Problem to solve
The upcoming changes for Teams & Projects do not include a way to delete a team.
Proposal
In the long run, having team settings could be interesting and also a good place to surface a team deletion action. However, a minimum viable change (MVC) for this could be to a) add a more actions button next to the primary action button on the team page (projects list) and b) trigger a confirmation modal to delete a team explaining any potential side-effects.
Drawbacks
The only drawback of this MVC proposal is that the delete action is only visible after adding at least one project. Alternatively, we could surface the more actions buttons also on the empty state of the team page next to the empty state action buttons.
The text was updated successfully, but these errors were encountered: