pim-community-dev
pim-community-dev copied to clipboard
Cpm 580 Add tests for multiple user intents in UpsertProductCommand
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
Add comment in UpsertProductHandler l.84
// parent user intent should always be applied first