-
Notifications
You must be signed in to change notification settings - Fork 134
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
Deleting fermentable from recipe causes a crash. #436
Comments
This doesn't have anything to do with #435 . I haven't pulled those changes yet. |
Looks like this is my fault. It works fine in c93bf1f, but not in eaf3d01 which is where PR #432 was merged in. The diff between these commits is rather small, and I can't see anything obvious which would be causing this. Admittedly I am completely unfamiliar with the workings of the database code. Note that the delete works for fermentables in the recipes that ship with Brewtarget. It only fails on fermentables you add, which suggests the add is failing to populate all the tables in the database. I'm not sure how much time I'll have to dig into this. One option is to revert #432 (and reopen bug #396) until a more robust solution can be found. |
I was wondering if the root cause has been identified or if is any fix for this problem? I'm also getting the same error when I attempt to delete a fermentable from a recipe, in the console it says:
I was able to manually clean up my database by running the following script: DELETE FROM fermentable_children WHERE child_id = 597;
DELETE FROM fermentable_in_recipe WHERE fermentable_id = 597;
DELETE FROM fermentable_in_inventory WHERE fermentable_id = 597;
DELETE FROM fermentable where id=597; |
I'll look. I don't think I've seen that one but I also can't claim to have been looking. |
This problem has become severe for me. It triggers every time I attempt to remove a fermentable from a recipe. Is there anything I can do to help diagnose/fix this issue? Is there any way I can clean or verify the integrity of my database? |
I had a look into this and made a change to I have no idea how this actually interacts with the inventory system. If someone can review it and approve or give feedback that would be great. |
Deleting fermentable from recipe causes a crash. I bet this has something to do with 8cef99c
The text was updated successfully, but these errors were encountered: