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 41AAD200CBD for ; Thu, 6 Jul 2017 17:52:48 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 3EAB3166C0F; Thu, 6 Jul 2017 15:52:48 +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 83C99166C0C for ; Thu, 6 Jul 2017 17:52:47 +0200 (CEST) Received: (qmail 93471 invoked by uid 500); 6 Jul 2017 15:52:46 -0000 Mailing-List: contact dev-help@atlas.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@atlas.apache.org Delivered-To: mailing list dev@atlas.apache.org Received: (qmail 93460 invoked by uid 99); 6 Jul 2017 15:52:46 -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; Thu, 06 Jul 2017 15:52:46 +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 05EF21A0543; Thu, 6 Jul 2017 15:52:46 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3 X-Spam-Level: *** X-Spam-Status: No, score=3 tagged_above=-999 required=6.31 tests=[HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=2, KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id ar_IgvKIGTvz; Thu, 6 Jul 2017 15:52:44 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id EFF865F341; Thu, 6 Jul 2017 15:52:43 +0000 (UTC) Received: from reviews.apache.org (unknown [10.41.0.12]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 90D7CE0069; Thu, 6 Jul 2017 15:52:43 +0000 (UTC) Received: from reviews-vm2.apache.org (localhost [IPv6:::1]) by reviews.apache.org (ASF Mail Server at reviews-vm2.apache.org) with ESMTP id BE644C400C1; Thu, 6 Jul 2017 15:52:42 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============0136641351340621877==" MIME-Version: 1.0 Subject: Re: Review Request 60285: [ATLAS-1892]: Implement logic to create relationship attributes in AtlasEntityType From: David Radley To: Apoorv Naik , Madhan Neethiraj , Ashutosh Mestry , Nixon Rodrigues Cc: atlas , David Radley , Sarath Subramanian Date: Thu, 06 Jul 2017 15:52:41 -0000 Message-ID: <20170706155241.28281.61864@reviews-vm2.apache.org> X-ReviewBoard-URL: https://reviews.apache.org/ Auto-Submitted: auto-generated Sender: David Radley X-ReviewGroup: atlas X-Auto-Response-Suppress: DR, RN, OOF, AutoReply X-ReviewRequest-URL: https://reviews.apache.org/r/60285/ X-Sender: David Radley References: <20170622215124.61729.49454@reviews-vm2.apache.org> In-Reply-To: <20170622215124.61729.49454@reviews-vm2.apache.org> Reply-To: David Radley X-ReviewRequest-Repository: atlas archived-at: Thu, 06 Jul 2017 15:52:48 -0000 --===============0136641351340621877== 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/60285/#review179792 ----------------------------------------------------------- intg/src/main/java/org/apache/atlas/type/AtlasRelationshipType.java Line 34 (original), 36 (patched) 1|) created 2 entityDefs and a relationshipDef relating them 2) create 2 entity instances 3) create a relationship between the entity instances 4) I then did a get on one of the entities using its guid and do not see the relationship information. I get : { "referredEntities": {}, "entity": { "typeName": "TestEntBB5", "attributes": { "namedd": "Test1" }, "guid": "0c0c0a42-8793-4dfb-9744-8f0b9fc66195", "status": "ACTIVE", "createdBy": "admin", "updatedBy": "admin", "createTime": 1499350955631, "updateTime": 1499350955631, "version": 0, "classifications": [] } } I was expecting to see the relationship attributes with the attribute names with values of AtlasObjectIds and the relationship attributes somewhere. Am I missing something? - David Radley On June 22, 2017, 9:51 p.m., Sarath Subramanian wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/60285/ > ----------------------------------------------------------- > > (Updated June 22, 2017, 9:51 p.m.) > > > Review request for atlas, Apoorv Naik, Ashutosh Mestry, Madhan Neethiraj, Nixon Rodrigues, and Suma Shivaprasad. > > > Bugs: ATLAS-1892 > https://issues.apache.org/jira/browse/ATLAS-1892 > > > Repository: atlas > > > Description > ------- > > When a new relationshipDef is created, relation attributes needs to be populated in AtlasEntityType during resolveReference stage. > This JIRA also adds UT, IT and addresses review comments in https://reviews.apache.org/r/59769/ > > > Diffs > ----- > > authorization/src/main/java/org/apache/atlas/authorize/AtlasResourceTypes.java 925b6b13 > authorization/src/main/java/org/apache/atlas/authorize/simple/AtlasAuthorizationUtils.java bb3157a3 > authorization/src/main/java/org/apache/atlas/authorize/simple/PolicyParser.java acf73882 > distro/src/conf/policy-store.txt 47583c1e > intg/src/main/java/org/apache/atlas/AtlasErrorCode.java e8971a80 > intg/src/main/java/org/apache/atlas/model/typedef/AtlasRelationshipEndDef.java 34e932ed > intg/src/main/java/org/apache/atlas/type/AtlasEntityType.java a29f7fb6 > intg/src/main/java/org/apache/atlas/type/AtlasRelationshipType.java 38b68bbd > intg/src/test/java/org/apache/atlas/type/TestAtlasRelationshipType.java 7a4e9fd5 > repository/src/main/java/org/apache/atlas/repository/store/graph/v1/AtlasRelationshipStoreV1.java 8fe48885 > webapp/src/main/java/org/apache/atlas/web/rest/RelationshipREST.java 144080ad > > > Diff: https://reviews.apache.org/r/60285/diff/3/ > > > Testing > ------- > > UT added and tested. > IT in progress. > > > Thanks, > > Sarath Subramanian > > --===============0136641351340621877==--