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 7645F200CBD for ; Thu, 6 Jul 2017 12:55:30 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 74ED8166164; Thu, 6 Jul 2017 10:55:30 +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 BA1A8166163 for ; Thu, 6 Jul 2017 12:55:29 +0200 (CEST) Received: (qmail 9992 invoked by uid 500); 6 Jul 2017 10:55:28 -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 9981 invoked by uid 99); 6 Jul 2017 10:55:28 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Jul 2017 10:55:28 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 3B9E5180A5A; Thu, 6 Jul 2017 10:55:28 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-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-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id WE4v5fuBs8_t; Thu, 6 Jul 2017 10:55:26 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 9DCD15FB62; Thu, 6 Jul 2017 10:55:25 +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 01973E0069; Thu, 6 Jul 2017 10:55:25 +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 8BFEAC4043E; Thu, 6 Jul 2017 10:55:24 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============3847298039562510254==" 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 10:55:23 -0000 Message-ID: <20170706105523.36467.46367@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 10:55:30 -0000 --===============3847298039562510254== 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/#review179764 ----------------------------------------------------------- intg/src/main/java/org/apache/atlas/AtlasErrorCode.java Lines 96 (patched) updateion => update the error seems to be called from a validate method which is only called for create, so the error label should not be CRUD. Can this error be issues for updates ? intg/src/main/java/org/apache/atlas/type/AtlasRelationshipType.java Lines 200 (patched) I had merge issues when I tried to apply this patch. for me this resulted in 2 of these methods and a compile error. I think this method has already been committed. I also got a merge conflict inthe AtlasErrorCode - on 2 comments that looked the same. intg/src/main/java/org/apache/atlas/type/AtlasRelationshipType.java Lines 221 (patched) shouldn't there be an else here so we can error in the case where we have already use this attribute name . repository/src/main/java/org/apache/atlas/repository/store/graph/v1/AtlasRelationshipStoreV1.java Lines 261 (patched) the messages should have message numbers. - 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 > > --===============3847298039562510254==--