Skip to content

Conversation

@ddey2
Copy link
Member

@ddey2 ddey2 commented Aug 30, 2024

To test, please pull v1 PR

I have chosen the standard license ids based on logic defined in models/LicenseData.scala in v1.

@ddey2 ddey2 requested a review from max-zilla as a code owner August 30, 2024 02:10
@ddey2 ddey2 changed the base branch from 978-migrate-users to 1187-migrate-collections August 30, 2024 02:12
@ddey2 ddey2 linked an issue Aug 30, 2024 that may be closed by this pull request
Copy link
Member

@longshuicy longshuicy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested the license part with below data and works.

dataset = {‘id’: ‘66d0decd8d5270901236f5ce’, ‘name’: ‘dt1’, ‘description’: ‘bjkdscb’, ‘created’: ‘Thu Aug 29 15:49:17 CDT 2024’, ‘thumbnail’: None, ‘authorId’: ‘66d0deac9601dfcb9adb1737’, ‘spaces’: [], ‘resource_type’: ‘dataset’, ‘license’: {‘license_type’: ‘license1’, ‘license_url’: ‘’, ‘license_text’: ‘All Rights Reserve’, ‘holders’: ‘Dipa Dey’, ‘ccAllowCommercial’: False, ‘ccAllowDerivative’: False, ‘ccRequireShareAlike’: False}}

@longshuicy longshuicy merged commit f423636 into 1187-migrate-collections Aug 30, 2024
@longshuicy longshuicy deleted the 1191-migrate-license branch August 30, 2024 21:23
longshuicy added a commit that referenced this pull request Sep 3, 2024
* 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 <cwang138@illinois.edu>

* removing print statements

* better error logging

---------

Co-authored-by: Dipannita <ddey2@illinois.edu>
Co-authored-by: Chen Wang <cwang138@illinois.edu>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migrate v1 dataset licenses to v2

3 participants