You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@atlas.apache.org by am...@apache.org on 2020/01/17 19:57:55 UTC

[atlas] branch branch-2.0 updated (0a4b1ec -> b07fa3b)

This is an automated email from the ASF dual-hosted git repository.

amestry pushed a change to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/atlas.git.


    from 0a4b1ec  ATLAS-3581:HBase hook converts qualifiedName to lowercase for namespace, table, column-family and column
     new 2252723  ATLAS-3588 Export API- Update documentation
     new b07fa3b  ATLAS-3559: Additional attributes (displayName & userDescription) to Asset.

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 addons/models/0000-Area0/0010-base_model.json      | 18 ++++++++++++
 .../005-base_model_add_display_attributes.json     | 33 ++++++++++++++++++++++
 docs/src/documents/Import-Export/ExportAPI.md      | 30 ++++++++++++++------
 docs/src/documents/Import-Export/ExportHDFSAPI.md  |  3 +-
 4 files changed, 73 insertions(+), 11 deletions(-)
 create mode 100644 addons/models/0000-Area0/patches/005-base_model_add_display_attributes.json


[atlas] 01/02: ATLAS-3588 Export API- Update documentation

Posted by am...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

amestry pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/atlas.git

commit 225272397ba3e44ed0a0bcf79c2bf5ddd04949e4
Author: nikhilbonte <ni...@freestoneinfotech.com>
AuthorDate: Wed Jan 15 14:32:11 2020 +0530

    ATLAS-3588 Export API- Update documentation
    
    Signed-off-by: Ashutosh Mestry <am...@cloudera.com>
---
 docs/src/documents/Import-Export/ExportAPI.md     | 30 ++++++++++++++++-------
 docs/src/documents/Import-Export/ExportHDFSAPI.md |  3 +--
 2 files changed, 22 insertions(+), 11 deletions(-)

diff --git a/docs/src/documents/Import-Export/ExportAPI.md b/docs/src/documents/Import-Export/ExportAPI.md
index 4c1e662..f240e02 100644
--- a/docs/src/documents/Import-Export/ExportAPI.md
+++ b/docs/src/documents/Import-Export/ExportAPI.md
@@ -95,23 +95,36 @@ The _AtlasExportRequest_ below specifies the _fetchType_ as _FULL_. The _matchTy
 <SyntaxHighlighter wrapLines={true} language="json" style={theme.dark}>
 {`{
     "itemsToExport": [
-       { "typeName": "hive_db", "uniqueAttributes": { "qualifiedName": "accounts@" } },
+       { "typeName": "hive_db", "uniqueAttributes": { "qualifiedName": "accounts@" } }
     ],
-    "options" {
+    "options": {
         "fetchType": "FULL",
         "matchType": "startsWith"
     }
 }`}
 </SyntaxHighlighter>
 
+The _AtlasExportRequest_ below specifies the _guid_ instead of _uniqueAttribues_ to fetch _accounts@cl1_.
+
+<SyntaxHighlighter wrapLines={true} language="json" style={theme.dark}>
+{`{
+    "itemsToExport": [
+       { "typeName": "hive_db", "guid": "846c5e9c-3ac6-40ju-8289-fb0cebm64783" }
+    ],
+    "options": {
+        "fetchType": "FULL",
+    }
+}`}
+</SyntaxHighlighter>
+
 The _AtlasExportRequest_ below specifies the _fetchType_ as _connected_. The _matchType_ option will fetch _accountsReceivable_, _accountsPayable_, etc present in the database.
 
 <SyntaxHighlighter wrapLines={true} language="json" style={theme.dark}>
 {`{
     "itemsToExport": [
-       { "typeName": "hive_db", "uniqueAttributes": { "name": "accounts" } },
+       { "typeName": "hive_db", "uniqueAttributes": { "qualifiedName": "accounts" } }
     ],
-    "options" {
+    "options": {
         "fetchType": "CONNECTED",
         "matchType": "startsWith"
     }
@@ -165,11 +178,10 @@ Below are sample CURL calls that demonstrate Export of _QuickStart_ database.
 <SyntaxHighlighter wrapLines={true} language="shell" style={theme.dark}>
 {`curl -X POST -u adminuser:password -H "Content-Type: application/json" -H "Cache-Control: no-cache" -d '{
     "itemsToExport": [
-            { "typeName": "DB", "uniqueAttributes": { "name": "Sales" }
-            { "typeName": "DB", "uniqueAttributes": { "name": "Reporting" }
-            { "typeName": "DB", "uniqueAttributes": { "name": "Logging" }
-        }
+            { "typeName": "DB", "uniqueAttributes": { "name": "Sales" }},
+            { "typeName": "DB", "uniqueAttributes": { "name": "Reporting" }},
+            { "typeName": "DB", "uniqueAttributes": { "name": "Logging" }}
     ],
-        "options": { "full" }
+        "options": { "fetchType": "full" }
     }' "http://localhost:21000/api/atlas/admin/export" > quickStartDB.zip`}
 </SyntaxHighlighter>
diff --git a/docs/src/documents/Import-Export/ExportHDFSAPI.md b/docs/src/documents/Import-Export/ExportHDFSAPI.md
index 57d38aa..9f94501 100644
--- a/docs/src/documents/Import-Export/ExportHDFSAPI.md
+++ b/docs/src/documents/Import-Export/ExportHDFSAPI.md
@@ -38,8 +38,7 @@ Below are sample CURL calls that performs export operation on the _Sample HDFS S
 <SyntaxHighlighter wrapLines={true} language="shell" style={theme.dark}>
 {`curl -X POST -u adminuser:password -H "Content-Type: application/json" -H "Cache-Control: no-cache" -d '{
     "itemsToExport": [
-            { "typeName": "hdfs_path", "uniqueAttributes": { "name": "FinanceAll" }
-        }
+            { "typeName": "hdfs_path", "uniqueAttributes": { "qualifiedName": "FinanceAll" } }
     ],
     "options": {
      "fetchType": "full",


[atlas] 02/02: ATLAS-3559: Additional attributes (displayName & userDescription) to Asset.

Posted by am...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

amestry pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/atlas.git

commit b07fa3bb8f6cab0dfd3d9119cfcf4184c2c12209
Author: Ashutosh Mestry <am...@cloudera.com>
AuthorDate: Thu Jan 16 21:22:35 2020 -0800

    ATLAS-3559: Additional attributes (displayName & userDescription) to Asset.
---
 addons/models/0000-Area0/0010-base_model.json      | 18 ++++++++++++
 .../005-base_model_add_display_attributes.json     | 33 ++++++++++++++++++++++
 2 files changed, 51 insertions(+)

diff --git a/addons/models/0000-Area0/0010-base_model.json b/addons/models/0000-Area0/0010-base_model.json
index 2f5fdaf..6bdd2f7 100644
--- a/addons/models/0000-Area0/0010-base_model.json
+++ b/addons/models/0000-Area0/0010-base_model.json
@@ -44,6 +44,15 @@
           "indexType": "STRING"
         },
         {
+          "name": "displayName",
+          "typeName": "string",
+          "cardinality": "SINGLE",
+          "isIndexable": true,
+          "isOptional": true,
+          "isUnique": false,
+          "indexType": "STRING"
+        },
+        {
           "name": "description",
           "typeName": "string",
           "cardinality": "SINGLE",
@@ -52,6 +61,15 @@
           "isUnique": false
         },
         {
+          "name": "userDescription",
+          "typeName": "string",
+          "cardinality": "SINGLE",
+          "isIndexable": true,
+          "isOptional": true,
+          "isUnique": false,
+          "indexType": "STRING"
+        },
+        {
           "name": "owner",
           "typeName": "string",
           "cardinality": "SINGLE",
diff --git a/addons/models/0000-Area0/patches/005-base_model_add_display_attributes.json b/addons/models/0000-Area0/patches/005-base_model_add_display_attributes.json
new file mode 100644
index 0000000..41c8c4d
--- /dev/null
+++ b/addons/models/0000-Area0/patches/005-base_model_add_display_attributes.json
@@ -0,0 +1,33 @@
+{
+  "patches": [
+    {
+      "id": "TYPEDEF_PATCH_0005_001",
+      "description": "Add displayName and userDescription to Asset",
+      "action": "ADD_ATTRIBUTE",
+      "typeName": "Asset",
+      "applyToVersion": "1.5",
+      "updateToVersion": "1.6",
+      "params": null,
+      "attributeDefs": [
+        {
+          "name": "displayName",
+          "typeName": "string",
+          "cardinality": "SINGLE",
+          "isIndexable": true,
+          "isOptional": true,
+          "isUnique": false,
+          "indexType": "STRING"
+        },
+        {
+          "name": "userDescription",
+          "typeName": "string",
+          "cardinality": "SINGLE",
+          "isIndexable": true,
+          "isOptional": true,
+          "isUnique": false,
+          "indexType": "STRING"
+        }
+      ]
+    }
+  ]
+}