Ingredients of a recipe only visible inside edit recipe
See original GitHub issueI’m using the Mealplan with the recipes every week. But recently the new recipes are having a problem.
When I add a new recipe with ingredients. The ingredients show up in the edit part of a recipe:
But in the main recipe list, the ingredients do not show:
In this list (and the mealplan) the check if everything is in stock for this meal always says yes, even though the ingredients are clearly not available.
In the API the recipe is there:
{
"id": "48",
"name": "Test Recept",
"description": "<p>test<br></p>",
"row_created_timestamp": "2019-10-01 12:39:04",
"picture_file_name": null,
"base_servings": "2",
"desired_servings": "2",
"not_check_shoppinglist": "0",
"type": "normal"
}
And also the ingrediënt is there:
{
"id": "132",
"recipe_id": "48",
"product_id": "113",
"amount": "1.0",
"note": "",
"qu_id": "3",
"only_check_single_unit_in_stock": "0",
"ingredient_group": "",
"not_check_stock_fulfillment": "0",
"row_created_timestamp": "2019-10-01 12:39:18",
"variable_amount": ""
}
I’m note sure how to recreate this bug, because it’s happing for all my new recipes since some date. Last recipe to work is this one:
{
"id": "30",
"name": "Bloemkool met gehaktbal en kaassaus",
"description": "",
"row_created_timestamp": "2019-05-25 19:55:06",
"picture_file_name": null,
"base_servings": "3",
"desired_servings": "3",
"not_check_shoppinglist": "0",
"type": "normal"
}
But multiple recipes where added around the same time.
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Edit ingredients of given recipes - YAZIO (EN)
I'd like to see the ability to edit ingredients of a recipe when downloaded into a meal. At present only the number of...
Read more >Editing Product recipes - Katana Knowledge Base
To edit ingredients (materials and subassemblies), quantities, and variant values - just click on the associated fields and change the values. Changes are...
Read more >Editing Ingredients in a Recipe - Oracle Help Center
Editing Ingredients in a Recipe ; Click Production, and then click Recipes. ; Click Refresh to populate the page with previously created recipes....
Read more >Tips for entering, editing, and sharing recipes in MyNetDiary
Enter food items as ingredients in the form used in the recipe (e.g., ... the system-attached photo is displayed when you open the...
Read more >The Recipe Creator's Guide to Whisk
How to modify existing recipes: · Ingredients: Each ingredient will be listed. You have the option to edit, remove, add, and reorder ingredients....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ve found and fixed it: Because it’s not enforced forbidden to include the same recipe into itself as a nested recipe, it would cause infinite loops when resolving recipes. Therefore I’ve introduced a hard limit of 100 in the SQL view
recipes_nestings_resolved
, which does the recipe resolving part - which was totally stupid, because you can have of course more than 100 recipes. And also since meal plans are internally also nested recipes per day and week, there are much more recipes since then.Sorry…
If you want to have it now, you can execute the SQL statements inside that file manually against the database for example with SQLiteDatabaseBrowser, it will not hurt/conflict when doing an update later.
Cool. I’ve executed the SQL on the database and it works. Thanks!