Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 2A54F200B8C for ; Mon, 12 Sep 2016 16:45:28 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 28C73160AB2; Mon, 12 Sep 2016 14:45:28 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 47E5A160AB8 for ; Mon, 12 Sep 2016 16:45:27 +0200 (CEST) Received: (qmail 84142 invoked by uid 500); 12 Sep 2016 14:45:26 -0000 Mailing-List: contact dev-help@atlas.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@atlas.incubator.apache.org Delivered-To: mailing list dev@atlas.incubator.apache.org Received: (qmail 83953 invoked by uid 99); 12 Sep 2016 14:45:26 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Sep 2016 14:45:26 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id DEA39C059C for ; Mon, 12 Sep 2016 14:45:25 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -4.626 X-Spam-Level: X-Spam-Status: No, score=-4.626 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RP_MATCHES_RCVD=-1.426] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id mfa69Em9vXUp for ; Mon, 12 Sep 2016 14:45:22 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with SMTP id 7CAC660E0F for ; Mon, 12 Sep 2016 14:45:21 +0000 (UTC) Received: (qmail 83874 invoked by uid 99); 12 Sep 2016 14:45:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Sep 2016 14:45:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 8977B2C1B7D for ; Mon, 12 Sep 2016 14:45:20 +0000 (UTC) Date: Mon, 12 Sep 2016 14:45:20 +0000 (UTC) From: "Apoorv Naik (JIRA)" To: dev@atlas.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (ATLAS-1144) After updating/creating a set of entities, response contains the first entity definition only MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 12 Sep 2016 14:45:28 -0000 [ 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:45 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 { "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": {} } ] } was (Author: apoorvnaik): 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)