pim-community-dev icon indicating copy to clipboard operation
pim-community-dev copied to clipboard

Cpm 580 Add tests for multiple user intents in UpsertProductCommand

Open amigaire opened this issue 3 years ago • 1 comments
trafficstars

Description (for Contributor and Core Developer)

BUG/FIX:

When changing the parent product of a variant, the categories of the former parent were still present in the categories of the variant product. Now , we only fetch the categories linked to the product/product variant during Categories user intents' application.

Tests added on user intents:

  • ChangeParent with SetCategories/AddCategories/RemoveCategories
  • ChangeParent with SetFamily

Definition Of Done (for Core Developer only)

  • [x] Tests

amigaire avatar May 18 '22 13:05 amigaire

Add comment in UpsertProductHandler l.84

// parent user intent should always be applied first

amigaire avatar Jun 10 '22 09:06 amigaire