atlas-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sarath Subramanian <sar...@apache.org>
Subject Re: Review Request 61088: [ATLAS-1988]: Implement REST API to search for related entities
Date Tue, 25 Jul 2017 07:38:06 GMT

-----------------------------------------------------------
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=<db_guid>&attributeName=__hive_table.db&sortBy=name&limit=25&offset=0
http://localhost:21000/api/atlas/v2/search/relationship?guid=<db_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=<table_guid>&attributeName=columns&sortBy=name&limit=25&offset=0
http://localhost:21000/api/atlas/v2/search/relationship?guid=<table_guid>&attributeName=db&sortBy=name&limit=25&offset=0
http://localhost:21000/api/atlas/v2/search/relationship?guid=<table_guid>&attributeName=sd&sortBy=qualifiedName&limit=25&offset=0

Related entities search on hive_column:
http://localhost:21000/api/atlas/v2/search/relationship?guid=<column_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


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message