Hi Vedat
You have highlighted a more general issue in the catalog entity model.
Effectively, in implementations that support versioning, the version is part of the primary key of the catalog item, along with the id. And therefore any <entity>ref in the model should include version as well as id. This has not been done in all entities, for example in ProductSpecificationRef and CategoryRef we have version but in ProductOfferingRef we don't.
I'm going to open a change request to get this fixed. It applies also to other catalogs (service, resource, entity).
Specifically with regard to category, we should, as you say, add a new field called
parent, type CategoryRef. I'll open another change request, and hopefully your enhancement will be consistent with that.
------------------------------
Jonathan Goldberg
Amdocs Management Limited
Any opinions and statements made by me on this forum are purely personal, and do not necessarily reflect the position of the TM Forum or my employer.
------------------------------
Original Message:
Sent: Feb 06, 2023 01:03
From: Vedat Hallac
Subject: TMF 620 - Product Catalog - Category parent specification of versioned categories
Hello,
In all catalog variants, the entity Category contains a field named parentId. In a system where versioned entities are supported, this field does not uniquely identify the parent category instance. It should have been a CategoryRef object. Is there a plan to update this object/field in the upcoming revisions?
We are planning to extend Category with a new field named 'parent' with type CategoryRef, and we'll keep parent.id and parentId in sync as best as we can. Is there anything that we can do to make sure that it is in line with future versions of the catalogs?
Best Regards,
Vedat Hallac
------------------------------
Vedat Hallac
PiA Bilişim Hizmetleri A.Ş.
------------------------------