atlas-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Apoorv Naik (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (ATLAS-1144) After updating/creating a set of entities, response contains the first entity definition only
Date Mon, 12 Sep 2016 14:48:20 GMT

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

Apoorv Naik edited comment on ATLAS-1144 at 9/12/16 2:47 PM:
-------------------------------------------------------------

Here's how the API response with query param responseType=full would look like with the new
field definitionList that contains the definitions of all the entities successfully modified

{code:javascript}
{
  "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": {}
  },
    "definitionList": [
    {
    "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": {}
    }
  ]
}
{code}


was (Author: apoorvnaik):
Here's how the API response with query param responseType=full would look like with the new
field definitionList that contains the definitions of all the entities successfully modified
{
  "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)

Mime
View raw message