-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/56518/
-----------------------------------------------------------

Review request for atlas and Madhan Neethiraj.


Bugs: ATLAS-1503
    https://issues.apache.org/jira/browse/ATLAS-1503


Repository: atlas


Description
-------

Export to ZIP file given top-level entity.

Includes:
- Refactoring that addresses lastest review comments.
- Removed Import API and supporting classes.
- Includes new Gremlin query that fetches all the connected entities.
- Has logic to generate ZIP file stream.

CURL
```
curl -X POST -u admin:admin -H "Content-Type: application/json" -H 
"Cache-Control: no-cache" -d '{ 
  "itemsToExport": [
      {
          "typeName": "DB",
          "uniqueAttributes": {
              "name": "Sales"
          }
      }
  ],
  "options": null
}'
"http://localhost:21000/admin/export"; > ../docs/DB-Sales.zip
```

```
| => curl -X POST -u admin:admin -H "Content-Type: application/json" -H 
"Cache-Control: no-cache" -d '{
  "itemsToExport": [
      {
          "typeName": "hive_db",
          "uniqueAttributes": {
              "qualifiedName": "stocks@cl1"
          }
      }
  ],
  "options": null
}
' "http://localhost:21000/api/atlas/admin/export"; > ../docs/Stocks.zip
```


Diffs
-----

  intg/src/main/java/org/apache/atlas/AtlasErrorCode.java 7b11b70 
  intg/src/main/java/org/apache/atlas/model/ix/AtlasExportParams.java 
PRE-CREATION 
  intg/src/main/java/org/apache/atlas/model/ix/AtlasExportResult.java 
PRE-CREATION 
  intg/src/main/java/org/apache/atlas/model/typedef/AtlasTypesDef.java 899e53f 
  
repository/src/main/java/org/apache/atlas/repository/store/graph/v1/AtlasEntityStoreV1.java
 365f3cd 
  
repository/src/main/java/org/apache/atlas/repository/store/graph/v1/AtlasGraphUtilsV1.java
 bddac7a 
  
repository/src/main/java/org/apache/atlas/repository/store/graph/v1/EntityGraphRetriever.java
 e3c1f5c 
  webapp/src/main/java/org/apache/atlas/web/resources/AdminResource.java 
3bdcc87 
  webapp/src/main/java/org/apache/atlas/web/resources/ExportService.java 
PRE-CREATION 
  webapp/src/main/java/org/apache/atlas/web/resources/ZipSink.java PRE-CREATION 
  webapp/src/main/java/org/apache/atlas/web/util/Servlets.java 52dd9b5 
  webapp/src/test/java/org/apache/atlas/web/resources/AdminExportTest.java 
PRE-CREATION 
  webapp/src/test/java/org/apache/atlas/web/resources/AdminResourceTest.java 
d73190e 

Diff: https://reviews.apache.org/r/56518/diff/


Testing
-------

Verified export for:
- Entities, types and classifications created by Quickstart.
- hive_db and entities for hive with lineage informtion. (CSV file upload.)


Thanks,

Ashutosh Mestry

Reply via email to