Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1187 migrate collections and spaces as v2 metadata. #1190

Merged
merged 24 commits into from
Sep 3, 2024

Conversation

tcnichol
Copy link
Contributor

This is a work in progress for now.

To test this, you will first need to have an admin user in v2, and you will have to add the metadata definitions. I have added a new 'Collection' metadata definition. Right now this just has a field for the collection_name and collection_id, along with fields for parents. To handle nested collections beyond 1 level, or to handle datasets that are in more than one collection, the definition will need to change.

@tcnichol tcnichol linked an issue Aug 27, 2024 that may be closed by this pull request
@longshuicy longshuicy changed the base branch from main to 978-migrate-users August 27, 2024 21:02
@tcnichol tcnichol changed the title 1187 migrate collections 1187 migrate collections and spaces as v2 metadata. Aug 30, 2024
@tcnichol tcnichol marked this pull request as ready for review August 30, 2024 18:00
scripts/migration/migrate.py Outdated Show resolved Hide resolved
scripts/migration/migrate.py Outdated Show resolved Hide resolved
scripts/migration/migrate.py Outdated Show resolved Hide resolved
@tcnichol
Copy link
Contributor Author

tcnichol commented Sep 1, 2024

I think I've addressed all comments and everything is working. Got rid of all the print statements I had accidentally checked in for debugging and did some better logging for space and collection.

For posting the space metadata for a dataset, I added a try/except so if we're using v1 without my fix to return the space author, we will post space metadata based on the fields that we have.

@longshuicy longshuicy merged commit 4e68f21 into 978-migrate-users Sep 3, 2024
2 checks passed
@longshuicy longshuicy deleted the 1187-migrate-collections branch September 3, 2024 18:14
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 collections
3 participants