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

Delete Account with Team Deletion #4292

Open
joepavitt opened this issue Jul 31, 2024 · 7 comments · Fixed by #4354
Open

Delete Account with Team Deletion #4292

joepavitt opened this issue Jul 31, 2024 · 7 comments · Fixed by #4354
Assignees
Labels
area:frontend For any issues that require work in the frontend/UI feature-request New feature or request that needs to be turned into Epic/Story details size:S - 2 Sizing estimation point
Milestone

Comments

@joepavitt
Copy link
Contributor

Description

When deleting an account, users need to delete their team first. Whilst prompted, the settings for this are in a different place and not intuitive path to go between these locations.

If I am the only member of a team, that team has no instances, and I choose to delete my account - it should deleted both my account and my team in one hit.

Which customers would this be available to

None

Have you provided an initial effort estimate for this issue?

I have provided an initial effort estimate

@joepavitt joepavitt added feature-request New feature or request that needs to be turned into Epic/Story details needs-triage Needs looking at to decide what to do size:S - 2 Sizing estimation point and removed needs-triage Needs looking at to decide what to do labels Jul 31, 2024
@joepavitt joepavitt added this to the 2.8 milestone Jul 31, 2024
@joepavitt joepavitt added the area:frontend For any issues that require work in the frontend/UI label Aug 1, 2024
@cstns cstns self-assigned this Aug 8, 2024
@cstns
Copy link
Contributor

cstns commented Aug 8, 2024

@joepavitt, if the user trying to delete the team is the only owner but the team has other members, should we proceed with the team deletion?

@joepavitt
Copy link
Contributor Author

Good question - @knolleary - thoughts? I'd probably go with "no", as they're the kind of teams we want reaching out to us so that we can understand why they're churned

@knolleary
Copy link
Member

I'd stick with only deleting if they are the last person in the team.

@cstns
Copy link
Contributor

cstns commented Aug 8, 2024

OK, sound's good!

Should I also check for device presence?

@cstns
Copy link
Contributor

cstns commented Aug 8, 2024

Looking at the current implementation, we're iterating over the teams the user is a single owner of.

Let's say the user deleting his account is the owner of multiple teams and we try to delete them all. We don't encounter any problems with the first team, but for the 2'nd lets say we find out that it still has an instance assigned and throw an error.

Is the beforeDestroy hook in the modal transactional? We might find ourselves in situations where we delete just a single team then prompt the user with an error and he'll find himself in with a missing team in the case the hook isn't transactional.

Should we consider these scenarios?

@joepavitt
Copy link
Contributor Author

@cstns two options:

  • We do a sanity check first to see which teams can be deleted, then delete if they all can
  • As you've said, delete what we can, don't delete the full account, and then flag the remaining teams need to be dealt with.

The first option is the "proper" way imo

@knolleary
Copy link
Member

I'm reverting the PR that fixes this as it introduced a bug that left teams orphaned with active stripe subscriptions. I'm out of time to fix today, so reverting to prevent it happening further over the weekend. Will rework the original PR on Monday.

@knolleary knolleary assigned knolleary and unassigned cstns Sep 20, 2024
@knolleary knolleary modified the milestones: 2.8, 2.9 Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:frontend For any issues that require work in the frontend/UI feature-request New feature or request that needs to be turned into Epic/Story details size:S - 2 Sizing estimation point
Projects
Status: Closed / Done
Status: In Progress
Development

Successfully merging a pull request may close this issue.

3 participants