Skip to Content
0
Oct 30, 2019 at 05:38 PM

Classifying Products

93 Views

Hi experts,

I would like to ask if this scenario is an intentional behavior. For example, I have the following impex:

$classificationSystemVersion=catalogVersion(catalog(id[default=sampleClasssificationSystem]),version[default=1.0])[unique=true]
$systemVersion=systemVersion(catalog(id[default=sampleClasssificationSystem]),version[default=1.0])[unique=true]
$catalogVersion=catalogVersion(catalog(id[default=Default]),version[default=Staged])[unique=true]

INSERT_UPDATE ClassificationClass;code[unique=true];supercategories(code,$classificationSystemVersion);$classificationSystemVersion;
;classifyingCategory_PARENT;;;
;classifyingCategory_CHILD;classifyingCategory_PARENT;;

INSERT_UPDATE Category;code[unique=true];supercategories(code,$classificationSystemVersion);$catalogVersion;
;productCategory;classifyingCategory_CHILD;;

INSERT_UPDATE Product;code[unique=true];supercategories(code,$catalogVersion);$catalogVersion;
;sampleProduct;productCategory;;

INSERT_UPDATE ClassificationAttribute;code[unique=true];$systemVersion;
;attribute_of_parent;;
;attribute_of_child;;

INSERT_UPDATE ClassAttributeAssignment;classificationClass(code,$classificationSystemVersion)[unique=true];classificationAttribute(code,$systemVersion)[unique=true];;attributeType(code[default=string]);visibility(code[default=visible]);$systemVersion;
;classifyingCategory_PARENT;attribute_of_parent;;;;
;classifyingCategory_CHILD;attribute_of_child;;;;

Basically, I have two classifying categories that have a parent-child relationship. Only the child classifying category is assigned to the product category. Upon checking in backoffice, the product is only classified by the child classifying category.

However, the classification attributes displayed are both from the parent and child classifying category.

It seems that there is a conflict in the implementation on the resolve(ProductModel) and getAllClassAttributeAssignments(Set<ClassificationClassModel>) methods of DefaultClassificationClassesResolverStrategy class.

Thank you in advance.

Regards

Attachments

hyb-q1.png (66.5 kB)
hyb-q2.png (60.2 kB)