Skip to content

Commit e92aac9

Browse files
committed
sample json for mdata
1 parent a3733ac commit e92aac9

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

scripts/migration/migrate.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,10 @@ def get_clowder_v1_collection_self_and_ancestors(collection_id, self_and_ancesto
153153
parents = get_clowder_v1_parent_collection(self, headers=headers)
154154
self_and_ancestors.append(parents)
155155
for parent in parents:
156-
get_clowder_v1_collection_self_and_ancestors(parent['id'],self_and_ancestors, headers=headers)
156+
current_self_and_ancestors = get_clowder_v1_collection_self_and_ancestors(parent['id'],self_and_ancestors, headers=headers)
157+
self_and_ancestors += current_self_and_ancestors
157158
print("got parents")
159+
return self_and_ancestors
158160

159161
def get_clowder_v1_parent_collection(current_collection, headers):
160162
parents = []
@@ -414,7 +416,9 @@ def process_user_and_resources(user_v1, USER_MAP, DATASET_MAP):
414416

415417
migration_listener_info = {'name':'clowder.v1.migration',
416418
'version':'1.0',
417-
'description': 'migration script to migrate data from v1 to v2'}
419+
'description': 'migration script to migrate data from v1 to v2',
420+
"content":"STUFF HERE,",
421+
'contents':"STUFF HERE"}
418422

419423
{'context_url': 'https://clowder.ncsa.illinois.edu/contexts/metadata.jsonld', 'content': {'lines': '47', 'words': '225', 'characters': '2154'}, 'contents': {'lines': '47', 'words': '225', 'characters': '2154'}, 'listener': {'name': 'ncsa.wordcount', 'version': '2.0', 'description': '2.0'}}
420424

0 commit comments

Comments
 (0)