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

gracefully handle referenced item deletion attempts #31

Open
rinusser opened this issue Apr 12, 2019 · 0 comments
Open

gracefully handle referenced item deletion attempts #31

rinusser opened this issue Apr 12, 2019 · 0 comments
Assignees

Comments

@rinusser
Copy link
Owner

Currently it's possible to delete items with active references, e.g. a food item that's used in an intake entry. Doing do throws an exception in Entity Framework, shutting down the application without actually deleting the item from the database.

Prevent this: add a graceful way of handling the situation:

  1. At least catch the exception and show an explanation.
  2. Ideally, also disable the "delete" button on items that can't be deleted for any reason.
@rinusser rinusser self-assigned this Apr 12, 2019
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

No branches or pull requests

1 participant