From 7efa9e5e35d3f237bcbbebd5b4d6f328b97c87fc Mon Sep 17 00:00:00 2001
From: vermeul <swen@ethz.ch>
Date: Fri, 20 Dec 2019 15:12:28 +0100
Subject: [PATCH] addet dataSetPermId and dataStore to parse_jackson; added
 extract_downloadUrl method

---
 pybis/src/python/pybis/utils.py | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/pybis/src/python/pybis/utils.py b/pybis/src/python/pybis/utils.py
index 30f14ceb0d2..38db0d92b4b 100644
--- a/pybis/src/python/pybis/utils.py
+++ b/pybis/src/python/pybis/utils.py
@@ -19,7 +19,7 @@ def parse_jackson(input_json):
         'children', 'containers', 'container', 'properties', 'experiment', 'sample',
         'project', 'space', 'propertyType', 'entityType', 'propertyType', 'propertyAssignment',
         'externalDms', 'roleAssignments', 'user', 'users', 'authorizationGroup', 'vocabulary',
-        'validationPlugin'
+        'validationPlugin', 'dataSetPermId', 'dataStore'
     ]
     found = {} 
     def build_cache(graph):
@@ -143,6 +143,11 @@ def extract_code(obj):
         return '' if obj is None else str(obj)
     return '' if obj['code'] is None else obj['code']
 
+def extract_downloadUrl(obj):
+    if not isinstance(obj, dict):
+        return '' if obj is None else str(obj)
+    return '' if obj['downloadUrl'] is None else obj['downloadUrl']
+
 def extract_name(obj):
     if not isinstance(obj, dict):
         return '' if obj is None else str(obj)
-- 
GitLab