Skip to content

[BUG] - Data loss when parsing ingredients of a modified recipe #5336

Open
@simgunz

Description

@simgunz

First Check

  • This is not a feature request.
  • I added a very descriptive title to this issue (title field is above this).
  • I used the GitHub search to find a similar issue and didn't find it.
  • I searched the Mealie documentation, with the integrated search.
  • 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?

Modifications to the recipe ingredients are not saved when clicking OK on the following modal dialog that appears when the user clicks the parse ingredient button.

Steps to Reproduce

  1. Edit a recipe
  2. Delete first ingredient/Add a new ingredient/Modify existing ingredient
  3. Click "Parse"
  4. A prompt appears asking to save the changes > Click "OK"
  5. Ingredients automatically parsed (Brute Parser)

Result:

  • The old state of the ingredients is parsed by the ingredient parser. If we accept the result of the parser, any modification to the receipt ingredients is lost.
  • (If we refuse the results of the ingredient parser, the modifications are indeed saved)

Expected result:
The new state of the ingredients is passed to the parsed.

Please provide relevant logs

INFO 2025-04-12T17:28:31 - [127.0.0.1:51100] 200 OK "GET /api/app/about HTTP/1.1"
INFO 2025-04-12T17:28:45 - [172.21.0.1:43456] 200 OK "PUT /api/recipes/filetti-di-trota-salmonata-al-forno-con-melagrana HTTP/1.1"
INFO 2025-04-12T17:28:59 - [172.21.0.1:52836] 200 OK "GET /api/app/about HTTP/1.1"
INFO 2025-04-12T17:28:59 - [172.21.0.1:52852] 200 OK "GET /api/recipes/filetti-di-trota-salmonata-al-forno-con-melagrana HTTP/1.1"
INFO 2025-04-12T17:29:01 - [172.21.0.1:52862] 200 OK "PUT /api/recipes/filetti-di-trota-salmonata-al-forno-con-melagrana HTTP/1.1"
INFO 2025-04-12T17:29:02 - HTTP Request: POST https://api.openai.com/v1/chat/completions "HTTP/1.1 200 OK"
INFO 2025-04-12T17:29:02 - HTTP Request: POST https://api.openai.com/v1/chat/completions "HTTP/1.1 200 OK"
INFO 2025-04-12T17:29:02 - HTTP Request: POST https://api.openai.com/v1/chat/completions "HTTP/1.1 200 OK"
INFO 2025-04-12T17:29:02 - HTTP Request: POST https://api.openai.com/v1/chat/completions "HTTP/1.1 200 OK"
INFO 2025-04-12T17:29:02 - HTTP Request: POST https://api.openai.com/v1/chat/completions "HTTP/1.1 200 OK"
INFO 2025-04-12T17:29:02 - HTTP Request: POST https://api.openai.com/v1/chat/completions "HTTP/1.1 200 OK"
INFO 2025-04-12T17:29:03 - HTTP Request: POST https://api.openai.com/v1/chat/completions "HTTP/1.1 200 OK"
INFO 2025-04-12T17:29:04 - [172.21.0.1:52836] 200 OK "POST /api/parser/ingredients HTTP/1.1"
INFO 2025-04-12T17:29:04 - [127.0.0.1:49196] 200 OK "GET /api/app/about HTTP/1.1"
INFO 2025-04-12T17:29:18 - [172.21.0.1:54680] 201 Created "POST /api/foods HTTP/1.1"
INFO 2025-04-12T17:29:21 - [172.21.0.1:54680] 201 Created "POST /api/foods HTTP/1.1"
INFO 2025-04-12T17:29:23 - [172.21.0.1:54680] 200 OK "PUT /api/recipes/filetti-di-trota-salmonata-al-forno-con-melagrana HTTP/1.1"
INFO 2025-04-12T17:29:24 - [172.21.0.1:54680] 200 OK "GET /api/recipes/filetti-di-trota-salmonata-al-forno-con-melagrana HTTP/1.1"
INFO 2025-04-12T17:29:25 - [172.21.0.1:54680] 200 OK "GET /api/groups/households/ba473290-e0d3-4f27-948a-571a94ef56dd HTTP/1.1"
INFO 2025-04-12T17:29:25 - [172.21.0.1:35268] 200 OK "GET /api/groups/households/ba473290-e0d3-4f27-948a-571a94ef56dd HTTP/1.1"
INFO 2025-04-12T17:29:25 - [172.21.0.1:35272] 200 OK "GET /api/households/self/recipes/filetti-di-trota-salmonata-al-forno-con-melagrana HTTP/1.1"

Mealie Version

v2.8.0

Deployment

Docker (Linux)

Additional Deployment Details

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions