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

Apoorv Naik commented on ATLAS-1144:
------------------------------------

Here's how the API response would look like

{
  "requestId": "qtp1297978429-21 - 14bdc7b5-3d44-4ae0-8e75-e315ca4e3d37",
  "entities": {
    "updated": [
      "ac85e13e-926f-4618-97f9-779cbcf23f49",
      "23eeba58-2cf0-42bc-9bd0-54d0f9f2e0c8"
    ]
  },
  "definition": {
    "jsonClass": 
"org.apache.atlas.typesystem.json.InstanceSerialization$_Reference",
    "id": {
      "jsonClass": "org.apache.atlas.typesystem.json.InstanceSerialization$_Id",
      "id": "ac85e13e-926f-4618-97f9-779cbcf23f49",
      "version": 0,
      "typeName": "DataSet",
      "state": "ACTIVE"
    },
    "typeName": "DataSet",
    "values": {
      "qualifiedName": "default@cluster12",
      "owner": "hbase_admin",
      "description": "Default HBase namespace",
      "name": "default"
    },
    "traitNames": [],
    "traits": {}
  },
    {color:red} "definitionList"{color:red}: [
    {
    "jsonClass": 
"org.apache.atlas.typesystem.json.InstanceSerialization$_Reference",
    "id": {
      "jsonClass": "org.apache.atlas.typesystem.json.InstanceSerialization$_Id",
      "id": "ac85e13e-926f-4618-97f9-779cbcf23f49",
      "version": 0,
      "typeName": "DataSet",
      "state": "ACTIVE"
    },
    "typeName": "DataSet",
    "values": {
      "qualifiedName": "default@cluster12",
      "owner": "hbase_admin",
      "description": "Default HBase namespace",
      "name": "default"
    },
    "traitNames": [],
    "traits": {}
  },
    {
      "jsonClass": 
"org.apache.atlas.typesystem.json.InstanceSerialization$_Reference",
      "id": {
        "jsonClass": 
"org.apache.atlas.typesystem.json.InstanceSerialization$_Id",
        "id": "23eeba58-2cf0-42bc-9bd0-54d0f9f2e0c8",
        "version": 0,
        "typeName": "DataSet",
        "state": "ACTIVE"
      },
      "typeName": "DataSet",
      "values": {
        "qualifiedName": "default@cluster11",
        "owner": "hbase_admin",
        "description": "Default HBase namespace",
        "name": "default"
      },
      "traitNames": [],
      "traits": {}
    }
  ]
}

> After updating/creating a set of entities, response contains the first entity 
> definition only
> ---------------------------------------------------------------------------------------------
>
>                 Key: ATLAS-1144
>                 URL: https://issues.apache.org/jira/browse/ATLAS-1144
>             Project: Atlas
>          Issue Type: Bug
>    Affects Versions: 0.7-incubating
>            Reporter: Apoorv Naik
>            Assignee: Apoorv Naik
>             Fix For: 0.7-incubating
>
>         Attachments: ATLAS_1144.patch
>
>
> Version: Atlas 0.7
> Steps to recreate:
> 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\"*,....}
> }
> {color:red}Issue: definition does not contain the data for second 
> entity.{color}



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

Reply via email to