mealie icon indicating copy to clipboard operation
mealie copied to clipboard

[v1.0.0b] - Shopping list for food items not displaying labels properly

Open braddillon opened this issue 2 years ago • 2 comments

First Check

  • [X] This is not a feature request
  • [X] I added a very descriptive title to this issue.
  • [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.

What is the issue you are experiencing?

When building a shopping list with food items, it does not display the food labels properly. This happens both when adding to shopping list from recipe, and adding single food item manually.

If you manually set the label in the create shopping item window, it works properly. If you try to rely on the food database table, it doesn't display.

Also the api call to ./foods?start=0&limit=999 seems to return the proper label information, the shopping list just doesn't use it. image

Salt doesn't have proper label information, but when I manually set black pepper to 'meat'. It shows properly. image

Deployment

Docker (Linux)

Deployment Details

No response

braddillon avatar Jun 08 '22 10:06 braddillon

Can you check whether this still happens with the latest nightly? I can't reproduce it, for me the labels are properly added based on food items.

PFischbeck avatar Aug 22 '22 19:08 PFischbeck

Hi PF, Just pulled the latest nightly. If I add to shopping list from recipe, it works as expected. If I add single food item (without setting the label), it doesn't pull the food label from the food database.

Steps

  1. On shopping list, hit [+ Create] green button.
  2. Toggle food mode
  3. Find food item that has label from the dropdown (e.g. Salt)
  4. Fill in Units
  5. Leave label drowndown untouched (assuming it will be populated based on food).
  6. Hit Save (disk icon)
  7. New food item (salt) doesn't have label.

Let me know what I can provide to be more helpful.

braddillon avatar Aug 27 '22 11:08 braddillon