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 D9488200B80 for ; Wed, 31 Aug 2016 07:22:51 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id D7A02160AC5; Wed, 31 Aug 2016 05:22:51 +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 298B5160ABA for ; Wed, 31 Aug 2016 07:22:51 +0200 (CEST) Received: (qmail 33026 invoked by uid 500); 31 Aug 2016 05:22:50 -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 33013 invoked by uid 99); 31 Aug 2016 05:22:50 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Aug 2016 05:22:50 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id A3B321A92B0 for ; Wed, 31 Aug 2016 05:22:49 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -3.446 X-Spam-Level: X-Spam-Status: No, score=-3.446 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=2, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-1.426] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id RiaFrxfUbE8u for ; Wed, 31 Aug 2016 05:22:48 +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 832A35F39A for ; Wed, 31 Aug 2016 05:22:47 +0000 (UTC) Received: (qmail 32988 invoked by uid 99); 31 Aug 2016 05:22:46 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Aug 2016 05:22:46 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id 474D42D14CE; Wed, 31 Aug 2016 05:22:46 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============1042905103721383132==" MIME-Version: 1.0 Subject: Re: Review Request 51514: [ATLAS-1144] Create/update entity API call should return more definitions From: Madhan Neethiraj To: Madhan Neethiraj Cc: Apoorv Naik , atlas Date: Wed, 31 Aug 2016 05:22:46 -0000 Message-ID: <20160831052246.1642.30818@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org/ Auto-Submitted: auto-generated Sender: Madhan Neethiraj X-ReviewGroup: atlas X-Auto-Response-Suppress: DR, RN, OOF, AutoReply X-ReviewRequest-URL: https://reviews.apache.org/r/51514/ X-Sender: Madhan Neethiraj References: <20160830154437.1642.81443@reviews.apache.org> In-Reply-To: <20160830154437.1642.81443@reviews.apache.org> Reply-To: Madhan Neethiraj X-ReviewRequest-Repository: atlas archived-at: Wed, 31 Aug 2016 05:22:52 -0000 --===============1042905103721383132== MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/51514/#review147407 ----------------------------------------------------------- webapp/src/main/java/org/apache/atlas/web/resources/EntityResource.java (line 197) Does every request have its own 'uriInfo' object? If not, how does this method differentiate requests that include "responseType" query parameter from the ones that don't? - Madhan Neethiraj On Aug. 30, 2016, 3:44 p.m., Apoorv Naik wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/51514/ > ----------------------------------------------------------- > > (Updated Aug. 30, 2016, 3:44 p.m.) > > > Review request for atlas, Madhan Neethiraj and Suma Shivaprasad. > > > Repository: atlas > > > Description > ------- > > The bug states that the API response only shows one entity definition in the response of an update/create call wherease the expectation seems to be of getting the entire list of the entities that were created/updated. > > The fix adds the required capability by the means of a query parameter responseType with the value as "full", if the API call is made with this extra parameter, the response would contain an additional field called "definitionList" which is of type JsonArray. If the parameter is unspecified, the API response remains unaffected. > > > Diffs > ----- > > webapp/src/main/java/org/apache/atlas/web/resources/EntityResource.java 82016d0 > > Diff: https://reviews.apache.org/r/51514/diff/ > > > Testing > ------- > > > Thanks, > > Apoorv Naik > > --===============1042905103721383132==--