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

add migrator for moving relevant_protocols to protocol_link PR21 #76

Merged
merged 5 commits into from
Feb 7, 2024

Conversation

brynnz22
Copy link
Collaborator

This PR provides the migration code that addresses PR: #21

It moves any links that currently exist in the relevant_protocols slot over to the protocol_link slot and removes relevant_protocols from the study.

This migration is not dependent on any others.

@brynnz22 brynnz22 self-assigned this Jan 25, 2024
@brynnz22 brynnz22 changed the title add migrator for moving relevant_protocols to protocol_link add migrator for moving relevant_protocols to protocol_link PR21 Jan 25, 2024
Copy link

@eecavanna eecavanna left a comment

Choose a reason for hiding this comment

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

Looks good to me. Thanks for summarizing the changes in the PR description.

Note: This migrator has the "original" structure because the recent upstream changes to the migration framework (e.g. the introduction of adapters) haven't been propagated to this repo yet.

nmdc_schema/migrators/migrator_from_X_to_PR21.py Outdated Show resolved Hide resolved
@eecavanna
Copy link

Side note: I'm surprised the new slot's name is singular instead of plural. I consider that topic to be outside the scope of this PR, though.

@eecavanna
Copy link

This branch looks good to me, as of the latest commit.

@turbomam turbomam merged commit 15bca61 into main Feb 7, 2024
2 checks passed
@turbomam turbomam deleted the PR21-migration-remove-relevant_protocols branch February 7, 2024 20:09
@brynnz22 brynnz22 changed the title add migrator for moving relevant_protocols to protocol_link PR21 add migrator for moving relevant_protocols to protocol_link PR21 Apr 19, 2024
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.

3 participants