-
-
Notifications
You must be signed in to change notification settings - Fork 540
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
Feature Request: Optimize Only check if any amount is in stock
recipe ingredients shopping list amount when no unit conversion is supplied
#2545
Comments
Quoting myself from the origin of this request:
So I'm looking forward for such an in-depth proposal on how to make this fit everyone, everyone is invited to provide that. Changing it back and forth based on complains from the either and the other side is definitely not an option.
Lol, what an absurd comparison. You even mentioned yourself just minutes ago that you "don't like software that tries to guess what I want", but here it should magically guess that 1200 chickens or 300 tomatoes is not what you want? Hilarious. |
Only check if any amount is in stock
recipe ingredients shopping list amount when no unit conversion is supplied
Additionally quoting someone else from the mentioned origin of this request:
Have you tried that? Sounds for me like a practically oriented very good solution for this "problem". |
I don't think #1718 applies here. If I understand it correctly, they were talking about a scenario where there is a conversion-rule available. And I'm completely fine with their wish. If there is a conversion defined for this ingredient or unit: Go for it and convert it. I'm talking about the situation where their is no QU conversion defined. Currently grocy seems to go "I've no idea how much 300g tomatoes is, so I'm just assuming that one gram equals one piece of tomatoe" - resulting in a shopping list where I've entries like "300 pieces of tomatoe" and I don't see the benefit of this. Why try to convert a unit when there is no conversion-rule available? So my proposal would be:
I don't have a complete overview over all the wishes out there. But this shouldn't break #1718. Of cause I only see the use-cases that I'm aware of, so if you're aware of any benefit of doing this 1:1 conversions, let me know. Maybe I can think of a way to factor those in as well.
But it isn't a comparison. It's an actual example what is currently happening for me. I created a recipe and provide that it needs 300g of tomatoes and 1200g of chicken and I end up with 300 pieces of tomato and 1200 pieces of chicken on my shopping list. How can this not look like a bug to an average user?
No, it should explicitly not guess what I want. It should just take the provided ingredients from the recipe and put it on the shopping list when there is no conversion-rule available.
Sounds more like a workaround to me. Of cause I could go and guess the average weight of every produce that is sold by piece and by weight, but I still don't see why not just to add the one quantity that is known to be right (the one defined in the recipe) when there is no conversion rule available? |
Just to mention two related other functions of Grocy which need then special handling for this, adding more complexity everywhere (most likely that's not everything which need to be touched when essentially allowing arbitrary units on shopping list items):
You can input bullshit, Grocy does math based on its definition, probably this leads to output bullshit without that much surprise. If user-errors are now also treated as Bugs, I'll be most likely even more out here than I'm already be.
I just mentioned two other implications involved, Grocy is not a simple and dumb shopping list tool, having proper conversion factors available is pretty naturally essential for having and being able to provide a proper stock management experience. |
When using the "Add to shopping list" button, grocy messes up the units for all ingredients that have "Only check if any amount is in stock" selected.
Current behavior:
For my recipe I need 300g of tomato. In the master data I've already created an entry for tomatoes with "piece" as the default unit. Since tomatoes can have different weights I can't define a conversion from "piece" to "gram". So when creating the recipe I select "Only check if any amount is in stock", change the unit to "grams" and add 300 as the amount. This works fine - in the recipe it is displayed as "Ingredients: 300g tomato". But when adding it to the shopping list it becomes "300 pieces of tomato". So for some reason it doesn't carry over the unit and instead tries to convert it to the default unit with a ratio of 1:1.
Expected/Desired behavior:
Grocy should not try to convert units where there is no conversion rule supplied. It doesn't really help with checking the stock since I'd argue that very seldom somebody has 300 tomatoes in stock. And it looks like a bug to the user if they find 1200 chickens and 300 tomatoes on their shopping list. Instead it should just add the amount and unit as it is given without any conversion when the "Only check if any amount is in stock"-box is selected.
As for stock fulfillment it should behave like it is already described in the help-text next to the "Only check if any amount is in stock"-checkbox: "A different amount/unit can then be used below while for stock fulfillment checking it is sufficient when any amount of the product is in stock".
The text was updated successfully, but these errors were encountered: