Rahul Kurup created ATLAS-4667:
----------------------------------

             Summary: Cannot create subclassification using subTypes field.
                 Key: ATLAS-4667
                 URL: https://issues.apache.org/jira/browse/ATLAS-4667
             Project: Atlas
          Issue Type: Bug
            Reporter: Rahul Kurup


If I create two classifications and then attempt to create parent-child 
relation between them, the following request, where the superType is specified, 
works:

 

{{{}}
{{    "classificationDefs": [}}
{{        {}}
{{            "category": "CLASSIFICATION",}}
{{            "guid": "39a8acf8-0d4c-427d-94f1-e677487a9423",}}
{{            "createdBy": "admin",}}
{{            "updatedBy": "admin",}}
{{            "createTime": 1661496389541,}}
{{            "updateTime": 1661496389541,}}
{{            "version": 1,}}
{{            "name": "TCLASS",}}
{{            "description": "<p>TCLASSS</p>",}}
{{            "typeVersion": "1.0",}}
{{            "attributeDefs": [],}}
{{            "superTypes": ["XCLASS1"],}}
{{            "entityTypes": [],}}
{{            "subTypes": []}}
{{        }}}
{{    ],}}
{{    "entityDefs": [],}}
{{    "enumDefs": [],}}
{{    "structDefs": []}}
{{}}}

 

But this request to create the sub-classification link,where subType is 
specified instead, doesnt work:

 

{{{}}
{{    "classificationDefs": [}}
{{        {}}
{{            "category": "CLASSIFICATION",}}
{{            "guid": "39a8acf8-0d4c-427d-94f1-e677487a9423",}}
{{            "createdBy": "admin",}}
{{            "updatedBy": "admin",}}
{{            "createTime": 1661496389541,}}
{{            "updateTime": 1661496389541,}}
{{            "version": 1,}}
{{            "name": "XCLASS1",}}
{{            "description": "<p>XCLASSS</p>",}}
{{            "typeVersion": "1.0",}}
{{            "attributeDefs": [],}}
{{            "superTypes": [],}}
{{            "entityTypes": [],}}
{{            "subTypes": ["TCLASS"]}}
{{        }}}
{{    ],}}
{{    "entityDefs": [],}}
{{    "enumDefs": [],}}
{{    "structDefs": []}}
{{}}}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to