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 B9F6B200CC8 for ; Fri, 14 Jul 2017 20:00:07 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id B888C16E1BF; Fri, 14 Jul 2017 18:00:07 +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 076D616E1BC for ; Fri, 14 Jul 2017 20:00:06 +0200 (CEST) Received: (qmail 98146 invoked by uid 500); 14 Jul 2017 18:00:06 -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 98135 invoked by uid 99); 14 Jul 2017 18:00:05 -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; Fri, 14 Jul 2017 18:00:05 +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 72A981A078B; Fri, 14 Jul 2017 18:00:05 +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 sTEoMJhNCyFi; Fri, 14 Jul 2017 18:00:04 +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 2CD235FC4D; Fri, 14 Jul 2017 18:00:04 +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 CD72AE00A3; Fri, 14 Jul 2017 18:00:03 +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 BC580C40184; Fri, 14 Jul 2017 18:00:03 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============5426972534948824925==" MIME-Version: 1.0 Subject: Re: Review Request 60857: ATLAS-1950: Import API: Improvement: Specify Supertypes in Import Transforms From: Ashutosh Mestry To: Madhan Neethiraj , Ayub Pathan Cc: Ashutosh Mestry , atlas Date: Fri, 14 Jul 2017 18:00:03 -0000 Message-ID: <20170714180003.2425.92518@reviews-vm2.apache.org> X-ReviewBoard-URL: https://reviews.apache.org/ Auto-Submitted: auto-generated Sender: Ashutosh Mestry X-ReviewGroup: atlas X-Auto-Response-Suppress: DR, RN, OOF, AutoReply X-ReviewRequest-URL: https://reviews.apache.org/r/60857/ X-Sender: Ashutosh Mestry References: <20170713233819.55863.51217@reviews-vm2.apache.org> In-Reply-To: <20170713233819.55863.51217@reviews-vm2.apache.org> Reply-To: Ashutosh Mestry X-ReviewRequest-Repository: atlas archived-at: Fri, 14 Jul 2017 18:00:07 -0000 --===============5426972534948824925== 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/60857/ ----------------------------------------------------------- (Updated July 14, 2017, 6 p.m.) Review request for atlas, Ayub Pathan and Madhan Neethiraj. Changes ------- Updates include: - Updated request with issue id. Summary (updated) ----------------- ATLAS-1950: Import API: Improvement: Specify Supertypes in Import Transforms Bugs: ATLAS-1950 https://issues.apache.org/jira/browse/ATLAS-1950 Repository: atlas Description ------- **Background** Existing import transforms expects that the user specify each type and attribute name that needs to be transformed. This may cause large number of transform enumerating individual types to be specified. Specifying individual transforms may be tedious and perhaps error prone. **Solution** This feature improves on that case by allowing user to specify super types. That way the sub types of that type will automatically get the transform(s) applied. **Implementation** User can now specify transforms like: ```javascript { "options": { "transforms": "{ \"Asset\": { \"qualifiedName\": [ \"replace:@cl1:@cl2\" ] } }" } } ``` At runtime, the subtypes of this type are enumerated. The attribute and tranform map of the super type are now associated with all the sub-types. Diffs ----- repository/src/main/java/org/apache/atlas/repository/impexp/ImportService.java 92217178 repository/src/main/java/org/apache/atlas/repository/impexp/ImportTransforms.java 63e53c50 repository/src/test/java/org/apache/atlas/repository/impexp/ImportServiceTest.java de8e7ef3 Diff: https://reviews.apache.org/r/60857/diff/1/ Testing ------- **Unit tests** Unit test verifying this behavior were added. **Functional tests** Regular imports were run. Thanks, Ashutosh Mestry --===============5426972534948824925==--