Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io 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 0AA341663E4 for ; Tue, 25 Jul 2017 09:38:14 +0200 (CEST) Received: (qmail 1996 invoked by uid 500); 25 Jul 2017 07:38:09 -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 1985 invoked by uid 99); 25 Jul 2017 07:38:09 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Jul 2017 07:38:09 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id A9822C1776 for ; Tue, 25 Jul 2017 07:38:08 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.999 X-Spam-Level: ** X-Spam-Status: No, score=2.999 tagged_above=-999 required=6.31 tests=[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 (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id zIo8e76zRj-L for ; Tue, 25 Jul 2017 07:38:07 +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 5C35D5F238 for ; Tue, 25 Jul 2017 07:38:07 +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 3B805E00A3; Tue, 25 Jul 2017 07:38:06 +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 2B219C400CE; Tue, 25 Jul 2017 07:38:06 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============5834853165750561466==" MIME-Version: 1.0 Subject: Re: Review Request 61088: [ATLAS-1988]: Implement REST API to search for related entities From: Sarath Subramanian To: keval bhatt , Madhan Neethiraj Cc: atlas , Sarath Subramanian Date: Tue, 25 Jul 2017 07:38:06 -0000 Message-ID: <20170725073806.22658.80976@reviews-vm2.apache.org> X-ReviewBoard-URL: https://reviews.apache.org/ Auto-Submitted: auto-generated Sender: Sarath Subramanian X-ReviewGroup: atlas X-Auto-Response-Suppress: DR, RN, OOF, AutoReply X-ReviewRequest-URL: https://reviews.apache.org/r/61088/ X-Sender: Sarath Subramanian References: <20170724205242.27744.29031@reviews-vm2.apache.org> In-Reply-To: <20170724205242.27744.29031@reviews-vm2.apache.org> Reply-To: Sarath Subramanian X-ReviewRequest-Repository: atlas --===============5834853165750561466== 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/61088/ ----------------------------------------------------------- (Updated July 25, 2017, 12:38 a.m.) Review request for atlas, keval bhatt and Madhan Neethiraj. Bugs: ATLAS-1988 https://issues.apache.org/jira/browse/ATLAS-1988 Repository: atlas Description (updated) ------- Add a new endpoint (v2/search/relationship) in DiscoveryREST to search for related entities. Parameters: * guid * attributeName * sortBy * limit * offset Related entities search on hive_db: http://localhost:21000/api/atlas/v2/search/relationship?guid=&attributeName=__hive_table.db&sortBy=name&limit=25&offset=0 http://localhost:21000/api/atlas/v2/search/relationship?guid=&attributeName=__hive_table.db&sortBy=qualifiedName&limit=25&offset=0 Related entities search on hive_table: http://localhost:21000/api/atlas/v2/search/relationship?guid=&attributeName=columns&sortBy=name&limit=25&offset=0 http://localhost:21000/api/atlas/v2/search/relationship?guid=&attributeName=db&sortBy=name&limit=25&offset=0 http://localhost:21000/api/atlas/v2/search/relationship?guid=&attributeName=sd&sortBy=qualifiedName&limit=25&offset=0 Related entities search on hive_column: http://localhost:21000/api/atlas/v2/search/relationship?guid=&attributeName=table&sortBy=qualifiedName&limit=25&offset=0 Diffs (updated) ----- intg/src/main/java/org/apache/atlas/AtlasErrorCode.java d723b2a9 intg/src/main/java/org/apache/atlas/model/discovery/AtlasSearchResult.java 58274403 repository/src/main/java/org/apache/atlas/discovery/AtlasDiscoveryService.java 764b548f repository/src/main/java/org/apache/atlas/discovery/EntityDiscoveryService.java b183c72a repository/src/main/java/org/apache/atlas/repository/store/graph/v1/EntityGraphRetriever.java b8e0227c repository/src/main/java/org/apache/atlas/util/AtlasGremlin2QueryProvider.java 1bf03464 repository/src/main/java/org/apache/atlas/util/AtlasGremlinQueryProvider.java 8481a4f6 webapp/src/main/java/org/apache/atlas/web/rest/DiscoveryREST.java efab72a3 Diff: https://reviews.apache.org/r/61088/diff/2/ Changes: https://reviews.apache.org/r/61088/diff/1-2/ Testing ------- mvn clean package suceeded. Thanks, Sarath Subramanian --===============5834853165750561466==--