pocketIlmatto/cocktail_central

Refactor "pimp my bar" search

Closed this issue · 0 comments

"Pimp my bar" should return a list of items ordered by the number of new recipes that would be able to be fulfilled if added to the set of ingredients passed in as parameter. This search should first filter out any recipes that can already be made by the set of ingredients by reusing the Exclusive Search logic.

  • Currently the Pimp my bar search is implemented as a complex ActiveRecord/SQL query
  • The goal is to refactor this into code using appropriate data structure(s)