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 disband team button #11758

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add disband team button #11758

wants to merge 1 commit into from

Conversation

nanaya
Copy link
Collaborator

@nanaya nanaya commented Dec 20, 2024

This PR should contain all the things involved in deleting a team 🤔 (well, in the sense of whatever implemented at the moment which doesn't include pending team application because the model doesn't exist yet and the team chat channel)

Which currently just involves deleting the team itself and related files and member entries ┐(゚ヮ゚)┌

Extra things I can think of:

  1. requiring the team to be empty first (but why)
  2. notifying the members

if ($ret) {
$this->header()->delete();
$this->logo()->delete();
$this->members()->delete();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel like the db stuff should be deleted together in a transaction, and the assets should be removed first so there's no dangling stuff if something somehow fails (can just try delete the team again)

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

Successfully merging this pull request may close these issues.

2 participants