How do I merge duplicate ingredients?

Duplicate ingredients are an enemy of clean food data. Here's how to eliminate duplicates in Galley.

To combine duplicate ingredients, the unwanted ingredient's usages must be pointed to the desired ingredient.

When the unwanted ingredient has 0 usages (meaning it is used in 0 recipes), it can be deleted.

Let's dive into an example. We would like to combine “Milk” and “Milk, Whole" into a one ingredient for "Milk, Whole". 

  1. To start, navigate to the Ingredients catalog. 

  2. Enter the page of the ingredient that you would like to delete (in this example, "Milk"). 

  3. Scroll down until you see the recipes in the Usages section. 

  4. Select all of the recipes in that "Usages" section and click “Bulk Edit.”

  5. Enter the name of the desired ingredient to which you would like to transfer these usages (in this example, "Milk, Whole" is the ingredient to which we're changing) (do not make any changes to the quantity) and click “Submit.”

Every recipe that you selected now contains the desired ingredient ("Milk, Whole") instead of the unwanted ingredient ("Milk").

Since it now has 0 usages, you may now delete the unwanted ingredient ("Milk").

NOTE: If you have vendor items linked to the old ingredient ("Milk" in this example), they will not merge like the ingredient usages in the previous steps. You will need to manually add vendor items to the new ingredient. This article explains how to add vendor items to an ingredient.