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

Handle constraints on delete #4

Open
ringvold opened this issue Nov 17, 2021 · 0 comments
Open

Handle constraints on delete #4

ringvold opened this issue Nov 17, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@ringvold
Copy link
Owner

Currently when deleting certain objects/ecto models an exception is raised if the database constraints is violated. This should be presented to the user as an understandable error message.

Example: When trying to delete a server that is connected to matches or deleting teams that are used in matches, users should be notified about with an error message.

Investigate in which situations the constraints should be ignored/removed. Should you be able to delete a server even if it is connected to many matches? Should it cascade and take the matches with it when deleting?

@ringvold ringvold added the enhancement New feature or request label Jan 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant