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

Cleanup teams and projects when an account is deleted #6655

Closed
3 tasks done
jldec opened this issue Nov 10, 2021 · 8 comments · Fixed by #6721
Closed
3 tasks done

Cleanup teams and projects when an account is deleted #6655

jldec opened this issue Nov 10, 2021 · 8 comments · Fixed by #6721
Assignees
Labels
feature: teams and projects [DEPRECATED] Please, use feature: organizations or feature: projects labels instead. in discussion Action items being worked out in this issue team: webapp Issue belongs to the WebApp team type: bug Something isn't working

Comments

@jldec
Copy link
Contributor

jldec commented Nov 10, 2021

Users are reporting not being able to create projects after deleting (and recreating) their Gitpod account.

The New Project repo list will show "already taken" for projects left behind in deleted accounts

This happens because projects under deleted accounts were not cleaned up, preventing re-use of the repositories in those orphan projects.

To Reproduce

  • Delete an account which has an existing/working Project.
  • Try to create a new Project (under a different account) using the same repo.
  • Observe "already taken" for that repo.

Expected Behavior when deleting an account

  • Projects under the User account should be deleted
  • Teams, and the projects under them, exclusively held by the account should be deleted
  • Teams which also have a another owner, should not be deleted
@jldec jldec added type: bug Something isn't working feature: teams and projects [DEPRECATED] Please, use feature: organizations or feature: projects labels instead. team: webapp Issue belongs to the WebApp team labels Nov 10, 2021
@laushinka
Copy link
Contributor

@jldec I can reproduce. Did we give them a quick fix yet? (The Front link didn't redirect to the specific issue). If not we can mark the projects they need as deleted in the DB as a quick fix.

@laushinka
Copy link
Contributor

/schedule after checking with @jldec

@laushinka
Copy link
Contributor

/schedule

@roboquat
Copy link
Contributor

@laushinka: Issue scheduled in the meta team (WIP: 0)

In response to this:

/schedule

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.

@laushinka
Copy link
Contributor

/assign

@laushinka
Copy link
Contributor

laushinka commented Nov 11, 2021

  • Deleting an account should delete any projects exclusively held by the account
  • Projects in teams which also have a another owner, should not be deleted

@jldec Should the teams that they are an owner in, also be deleted?

@laushinka laushinka added the in discussion Action items being worked out in this issue label Nov 12, 2021
@laushinka
Copy link
Contributor

@jldec The issue talks about what happens to projects when an account is deleted, but teams are also affected, and when a team is deleted, so are the projects. How about we update this issue to be about what happens to teams and projects when an account is deleted?

@jldec jldec changed the title New Project repo list will show "already taken" for projects left behind in deleted accounts Cleanup teams and projects when an account is deleted Nov 12, 2021
@jldec
Copy link
Contributor Author

jldec commented Nov 12, 2021

@laushinka - good suggestion - thank you!
I have updated the issue title and description.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature: teams and projects [DEPRECATED] Please, use feature: organizations or feature: projects labels instead. in discussion Action items being worked out in this issue team: webapp Issue belongs to the WebApp team type: bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants