New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] - Multiple patch requests to recipe will duplicate ingredients and steps #2808
Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Pretty sure this is still a bug :) |
Hey thanks @RealFoxie for redirecting some attention back here. I used a little shell script:
It does not matter whether the ingredients are parsed or not. |
@RealFoxie how did you encounter any of this? I am not sure how a user would run against that wall, of the request not yet being handled, before sending another one. |
I have my own script that updates the description to put in the recipe price for every recipe I plan on a week. |
I also think that the dupplications might have the same id or similar? It has been a while, but I remember that e.g. Ingredient links would be linked to all the duplicated steps, instead of just the one I chose. |
First Check
What is the issue you are experiencing?
When doing multiple PATCH requests with a description as payload, the recipe ingredients and steps are duplicated.
Note:
The bug happens with payload to set the description, but might happen with other payloads too
The bug happens with a parsed ingredient, but might happen with any sort of ingredient.
My foods do have extra data and the sorts. If not reproduceable, I can give more details how the data looks on my end.
Steps to Reproduce
Please provide relevant logs
Mealie Version
Latest nightly
Deployment
Docker (Linux)
Additional Deployment Details
No response
The text was updated successfully, but these errors were encountered: