You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Deleting one or all recipe notes (at the bottom of the RecipePage, after the instructions) does not work after reloading the page.
The list is updated in the frontend, and a PUT request is made to the API with the empty Notes[] array but the update does not seem to be happening in the database. After reloading, we find the note(s) that had to be deleted. The database or backend doesn't seem to take into account the empty array...
Steps to Reproduce
Edit a recipe and add 1 or 2 notes.
Save recipe and reload this page. Note(s) are here.
Re-edit this recipe and delete all the notes.
Save the recipe. Notes appear to have been deleted.
Reload recipe page. Notice that the notes have reappeared
Please provide relevant logs
[11/25/23 13:59:15] INFO 127.0.0.1:0 - "GET httptools_impl.py:506
/api/media/recipes/84999a1b-8e00-4e6b-b347-eb934bbb99b5/images/original.webp?rnd=1&versi
on=fV90 HTTP/1.1" 200
[11/25/23 13:59:16] INFO 127.0.0.1:0 - "GET /api/foods?page=1&perPage=-1&orderBy=name&orderDirection=asc httptools_impl.py:506
HTTP/1.1" 200
[11/25/23 13:59:17] INFO 127.0.0.1:0 - "GET /api/units?page=1&perPage=-1&orderBy=name&orderDirection=asc httptools_impl.py:506
HTTP/1.1" 200
INFO 127.0.0.1:0 - "GET httptools_impl.py:506
/api/organizers/categories?page=1&perPage=-1&orderBy=name&orderDirection=asc HTTP/1.1"
200
INFO 127.0.0.1:0 - "GET httptools_impl.py:506
/api/organizers/categories?page=1&perPage=-1&orderBy=name&orderDirection=asc HTTP/1.1"
200
INFO 127.0.0.1:0 - "GET httptools_impl.py:506
/api/organizers/tags?page=1&perPage=-1&orderBy=name&orderDirection=asc HTTP/1.1" 200
INFO 127.0.0.1:0 - "GET httptools_impl.py:506
/api/organizers/tags?page=1&perPage=-1&orderBy=name&orderDirection=asc HTTP/1.1" 200
[11/25/23 13:59:32] INFO 127.0.0.1:0 - "PUT /api/recipes/perfect-pumpkin-pie HTTP/1.1" 200 httptools_impl.py:506
[11/25/23 13:59:32] INFO 3 changes detected main.py:286
INFO 127.0.0.1:0 - "GET /api/recipes/perfect-pumpkin-pie/comments HTTP/1.1" 200 httptools_impl.py:506
I printed the notes data in update_one() method (line 340 in mealie/services/recipe/recipe_service.py) :
First Check
What is the issue you are experiencing?
Deleting one or all recipe notes (at the bottom of the RecipePage, after the instructions) does not work after reloading the page.
The list is updated in the frontend, and a
PUT
request is made to the API with the emptyNotes[]
array but the update does not seem to be happening in the database. After reloading, we find the note(s) that had to be deleted. The database or backend doesn't seem to take into account the empty array...Steps to Reproduce
Please provide relevant logs
I printed the notes data in
update_one()
method (line 340 inmealie/services/recipe/recipe_service.py
) :Result:
update_data: []
<mealie.db.models.recipe.recipe.RecipeModel object at 0x7fd5a6bf5330>
returned new_data : [RecipeNote(title='Note 1', text='abc'), RecipeNote(title='Note 2', text='def')]
Mealie Version
Latest, nightly
Deployment
Docker (Linux)
Additional Deployment Details
No response
The text was updated successfully, but these errors were encountered: