mealie-recipes / mealie

Mealie is a self hosted recipe manager and meal planner with a RestAPI backend and a reactive frontend application built in Vue for a pleasant user experience for the whole family. Easily add recipes into your database by providing the url and mealie will automatically import the relevant data or add a family recipe with the UI editor
https://docs.mealie.io
GNU Affero General Public License v3.0
7.51k stars 752 forks source link

Random dinner option picking recipes from other categories #3876

Closed r33ce15 closed 4 months ago

r33ce15 commented 4 months ago

First Check

What is the issue you are experiencing?

So the issue is that using the random dinner option in the meal planner is selecting recipes that are not actually dinners despite showing a dinner tag within the meal planner UI. Image 10-07-2024 at 13 53 Image 10-07-2024 at 13 52 Image 10-07-2024 at 13 51

Steps to Reproduce

Go to the meal planner > edit plan > select random dinner button (it does not always select a non dinner option) but every now and then it will pick a recipe that shows as a dinner but when you go find said recipe within mealie you will see it is not tagged as a dinner in my screenshot example is cookies and when go to the recipe it’s tagged as a dessert or snack

Please provide relevant logs

If required I’ll need to pull them from the server.

Mealie Version

https://github.com/mealie-recipes/mealie/commit/e344f3f1e6672d673f6e0899a5cef28aa8beb2f0

Latest version 1.10.2

Deployment

Docker (Linux)

Additional Deployment Details

Deployed over at PikaPods

r33ce15 commented 4 months ago

Turns out this is just a little misleading and the option for random dinner is tied to the time of day not the category itself you can use the meal planner settings to make a rule to do this as follows:

to go to /group/mealplan/settings and then make a rule that says Categories: Dinner for Meal type: Dinner

This will then only supply recipe tagged as dinner when using random dinner option

So this is not a bug but a misunderstanding on my part thanks to the guys over on the discord for the help on showing me this option