-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1187 migrate collections and spaces as v2 metadata. (#1190)
* match other branch * adding new collection metadata * str not float * getting collections for a dataset in v1, fixing metadata for collections * posts collection name and id * adding routes for getting collections * making a method like the one in v1 for self and ancestors. it will be easier to build a collection hierarchy from this * sample json for mdata * posts collection name and id * building the data for collections * something works now * matching with other branch * methods for migrating collections as metadata * need to post it as metadata * change name * adding the metadata for collections * adding context url and right endpoint * getting spaces as well as collections * change name * remaning method * created v2 license based on v1 license details (#1193) Co-authored-by: Chen Wang <[email protected]> * removing print statements * better error logging --------- Co-authored-by: Dipannita <[email protected]> Co-authored-by: Chen Wang <[email protected]>
- Loading branch information
1 parent
2a52c7c
commit 4e68f21
Showing
2 changed files
with
339 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
{ | ||
"name" : "Collection", | ||
"description" : "Collection information from v1", | ||
"required_for_items": { | ||
"datasets": false, | ||
"files": false | ||
}, | ||
"context" : [ | ||
{ | ||
"collection_name" : "https://schema.org/colname", | ||
"collection_id" : "https://schema.org/colid", | ||
"parent_collection_name": "https://schema.org/parentcolname", | ||
"parent_collection_id": "https://schema.org/parentcolid" | ||
} | ||
], | ||
"fields" : [ | ||
{ | ||
"name" : "collection_name", | ||
"list" : false, | ||
"widgetType": "TextField", | ||
"config": { | ||
"type" : "str" | ||
}, | ||
"required" : false | ||
}, | ||
{ | ||
"name" : "collection_id", | ||
"list" : false, | ||
"widgetType": "TextField", | ||
"config": { | ||
"type" : "str" | ||
}, | ||
"required" : false | ||
}, | ||
{ | ||
"name" : "parent_collection_name", | ||
"list" : false, | ||
"widgetType": "TextField", | ||
"config": { | ||
"type" : "str" | ||
}, | ||
"required" : false | ||
}, | ||
{ | ||
"name" : "parent_collection_id", | ||
"list" : false, | ||
"widgetType": "TextField", | ||
"config": { | ||
"type" : "str" | ||
}, | ||
"required" : false | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters