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

Make extraction_target slot multivalued and implement migrator #192

Merged
merged 5 commits into from
Jun 5, 2024

Conversation

kheal
Copy link

@kheal kheal commented Jun 5, 2024

Addresses issue microbiomedata#2043

The following changes were made here:

  1. Changed name of slot from extraction_target to extraction_targets
  2. Made extraction_targets slot multivalued
  3. Added lipid to extractionTargetEnum
  4. Wrote migrator to accommodate the multivalued change and the slot name change.
  5. Updated all example data that uses this slot

@kheal kheal changed the title DRAFT: 2043 extraction target slot Make extraction target multivalued and implement migrator Jun 5, 2024
@kheal kheal marked this pull request as ready for review June 5, 2024 20:42
@kheal kheal marked this pull request as draft June 5, 2024 20:44
@kheal kheal changed the title Make extraction target multivalued and implement migrator Make extraction_target slot multivalued and implement migrator Jun 5, 2024
@kheal kheal marked this pull request as ready for review June 5, 2024 20:52

class Migrator(MigratorBase):
"""
Migrates data from X to PR192, makes the existing extracion_target slot multivalued and change its name to extraction_targets
Copy link
Collaborator

Choose a reason for hiding this comment

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

extraction is spelled like extracion

@brynnz22
Copy link
Collaborator

brynnz22 commented Jun 5, 2024

There is one little typo, but otherwise I tested and the migrator works!

@turbomam turbomam merged commit ca304e4 into main Jun 5, 2024
2 checks passed
@turbomam turbomam deleted the 2043_extraction_target_slot branch June 5, 2024 22:51
@eecavanna
Copy link

Thanks for implementing this and reviewing this. The migrator looks good to me. I approve, too (retroactively).

@eecavanna
Copy link

eecavanna commented Jun 7, 2024

Hi @kheal, will you add this migrator (a link to this PR) to the appropriate position in the description (i.e. first comment) of the "meta-issue" at microbiomedata#1607 (comment)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants