mealie
mealie copied to clipboard
[BUG] - Recipe gets in invalid state and can't be accessed or deleted
First Check
- [X] This is not a feature request.
- [X] I added a very descriptive title to this issue (title field is above this).
- [X] I used the GitHub search to find a similar issue and didn't find it.
- [X] I searched the Mealie documentation, with the integrated search.
- [X] I already read the docs and didn't find an answer.
- [ ] This issue can be replicated on the demo site (https://demo.mealie.io/).
What is the issue you are experiencing?
I have created a recipe via the api. The recipe contained an incredient without a referenceId.
The recipe was still created and is now in an invalid state as pydantic can no longer validate the Recipe object. Mealie now contains a recipe that i can not access in any way. Neither over the frontend nor via the api. It cannot be deleted without accessing the database directly.
Steps to Reproduce
Create a recipe via the api with the following recipe:
{
"name": "broken recipe",
"recipeIngredient": [
{
"note": "some fancy note and not a referenceId"
}
]
Please provide relevant logs
UUID input should be a string, bytes or UUID object [type=uuid_type, input_value=None, input_type=NoneType]
Mealie Version
docker:latest
Deployment
Docker (Linux)
Additional Deployment Details
No response