Skip to content

Cocktails whose missing ingredients can be made don't show up under 'Cocktails you can make' #313

@seamuslowry

Description

@seamuslowry

Describe the bug
When I filter by "Cocktails I Can Make," cocktails for which the ingredients are either on the shelf or are "Missing, but you can make it with ingredients in your shelf" do not appear in the list.

To Reproduce

  1. Create ingredient 'Lemon'
  2. Add ingredient 'Lemon' to shelf
  3. Create ingredient 'Lemon Juice' where it contains 'Lemon' (indicating that, if you have 'Lemon' you can make 'Lemon Juice')
  4. Ensure 'Lemon Juice' is not on your shelf
  5. Create a cocktail with 'Lemon Juice' as an ingredient
  6. Ensure all other ingredients for that cocktail are on your shelf
  7. See that the cocktail does not appear under 'Cocktails I Can Make'

Versions:

  • Docker: 27.1.1
  • Browser: Firefox

Additional context, log outputs...
No log outputs. I can see in the response for the cocktail, the 'Lemon Juice' ingredient configured as described is flagged as in_shelf: false (which is correct) and in_shelf_as_complex_ingredient: true (which is also correct). I believe that cocktails where all ingredients have some variation of in_shelf* property as true should show up under the 'Cocktails I Can Make' search.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions