[ 
https://issues.apache.org/jira/browse/ATLAS-746?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15369516#comment-15369516
 ] 

Prasad  S Madugundu commented on ATLAS-746:
-------------------------------------------

I have observed that the issue exists while creating entities as well. If I 
create an entity with an contained entity, then it returns GUIDs of the both 
the entities in "created" attribute of the response, but it contains definition 
of only one of the entities. So, it is not possible to identify which GUID 
belongs to which object.

Example: The request object creates a DataSet entity with a set of Tag entities 
contained in it.
Request object:
[
    {
        "jsonClass": 
"org.apache.atlas.typesystem.json.InstanceSerialization$_Reference",
        "id": {
            "jsonClass": 
"org.apache.atlas.typesystem.json.InstanceSerialization$_Id",
            "id": "-1468141527330828000",
            "version": 0,
            "typeName": "DataSet"
        },
        "typeName": "DataSet",
        "values": {
            "tags": [
                {
                    "jsonClass": 
"org.apache.atlas.typesystem.json.InstanceSerialization$_Reference",
                    "id": {
                        "jsonClass": 
"org.apache.atlas.typesystem.json.InstanceSerialization$_Id",
                        "id": null,
                        "version": 0,
                        "typeName": "Tag"
                    },
                    "typeName": "Tag",
                    "values": {
                        "name": "Analytics1",
                        "createdByUser": null
                    },
                    "traitNames": [ ],
                    "traits": { }
                }
            ],
            "shortDescription": "Table 1 description",
            "name": "Table1",
            "createdByUser": "oms"
        },
        "traitNames": [
        ],
        "traits": { }
    }
]

Result:
{

    "requestId": "qtp1828757853-16 - 449fd05e-c527-4da6-9377-963dc215a92d",
    "entities": {
        "created": [
            "27753c4b-90ef-4c2a-a77d-48088f98c8a5",
            "25df6588-4bbb-46a9-8c5b-021ec4e3f340"
        ]
    },
    "definition": {
        "jsonClass": 
"org.apache.atlas.typesystem.json.InstanceSerialization$_Reference",
        "id": {
            "jsonClass": 
"org.apache.atlas.typesystem.json.InstanceSerialization$_Id",
            "id": "27753c4b-90ef-4c2a-a77d-48088f98c8a5",
            "version": 0,
            "typeName": "Tag",
            "state": "ACTIVE"
        },
        "typeName": "Tag",
        "values": {
            "name": "Analytics1",
            "createdByUser": null,
        },
        "traitNames": [ ],
        "traits": { }
    }
}

> After updating a set of entities, response contains only the first entity 
> definition
> ------------------------------------------------------------------------------------
>
>                 Key: ATLAS-746
>                 URL: https://issues.apache.org/jira/browse/ATLAS-746
>             Project: Atlas
>          Issue Type: Bug
>    Affects Versions: 0.7-incubating
>            Reporter: Vishwanath Savakar
>
> Create two entities (POST /entities) and note guid1 and guid2 that get 
> generated.
> Update these entities in the same PUT /entities and response contains 
> (truncated for convenience):
> {
> "requestId": "...",
> "GUID": [
> "guid1",
> "guid2"
> ],
> "definition": "
> {......*\"id\":\"guid1\"*,....}
> }
> Issue: definition does not contain the data for second entity.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to