ibeal / KitchenDB

A personal project to create something that can track inventory and recipes to suggest recipes to make determined by inventory
2 stars 0 forks source link

add error checking for missing recipe #44

Closed ibeal closed 3 years ago

ibeal commented 3 years ago

menuAPI should respond if the requested recipe is not found in the database. Ideally the user should be made aware, and given the chance to correct the mistake. However, another solution is that the user is made aware, then the recipe is deleted from the menu, and the user can add a recipe back later

ibeal commented 3 years ago

I've implemented a good first stategy for this. The menu now features a missing recipe list. When the menuAPI tries to create a menu object from a database entry and finds missing recipes, it adds them to the missing recipes list instead. Then when the menu is loaded into the gui, a popup is display informing the user which recipe didn't make it