Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Invalid
-
None
-
None
-
None
-
None
Description
If you use the files that have been attached to ATLAS-1969, And create a Glossary and a GlossaryCategory instance. I notice :
"relationshipDefs":[
{
"name": "CategoryAnchor",
"typeVersion": "1.0",
"endDef1":
{ "name": "anchor", "type": "GlossaryCategory", "cardinality":"SINGLE" },
"endDef2":
,
"relationshipCategory":"COMPOSITION",
"propagateTags":"NONE"
},
when I create this relationship I had expected to see GlossaryCategory with new attribute anchor of type Glossary. I create an instance and see that the Category CatA is :
{
"referredEntities": {},
"entity": {
"typeName": "GlossaryCategory",
"attributes":
,
"guid": "e2d4fe5c-7e20-447e-a1d2-a4eacd093174",
"status": "ACTIVE",
"createdBy": "admin",
"updatedBy": "admin",
"createTime": 1500549089631,
"updateTime": 1500549089631,
"version": 0,
"relationshipAttributes": {
"externalGlossaryLinks": [],
"meanings": [],
"parentCategory":
,
"terms": [],
"externalReference": [],
"embeddedMetadata": [],
"categories": [
],
"childrenCategories": []
},
"classifications": []
}
}
This is not correct, it should have injected a relationship attribute anchor.
Also the Glossary is :
{
"referredEntities": {},
"entity": {
"typeName": "Glossary",
"attributes":
,
"guid": "de1890ce-c923-4b79-809b-f33e4054e672",
"status": "ACTIVE",
"createdBy": "admin",
"updatedBy": "admin",
"createTime": 1500549085716,
"updateTime": 1500549085716,
"version": 0,
"relationshipAttributes": {
"meanings": [],
"externalGlossary": [],
"externalReference": [],
"embeddedMetadata": [],
"anchor":
},
"classifications": []
}
}