Skip to content

Make eluent_introduction_category & has_mass_spectrometry_configuration slots on MassSpectrometry required and implement migrator #2461

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

Merged
merged 11 commits into from
May 28, 2025

Conversation

hesspnnl
Copy link
Contributor

@hesspnnl hesspnnl commented May 22, 2025

  • Make MassSpectromery's slots eluent_introduction_category, has_mass_spectrometry_configuration required
  • create a migrator to that will raise an error if the slots do not exist. Data for these slots has already been back filled.
  • Tested the migrators locally against mongo db data

This MR will close #2455

@hesspnnl hesspnnl self-assigned this May 22, 2025
@hesspnnl hesspnnl linked an issue May 22, 2025 that may be closed by this pull request
@hesspnnl hesspnnl marked this pull request as draft May 22, 2025 15:15
Copy link

github-actions bot commented May 22, 2025

PR Preview Action v1.6.1

🚀 View preview at
https://microbiomedata.github.io/nmdc-schema/pr-preview/pr-2461/

Built to branch gh-pages at 2025-05-28 13:22 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

@hesspnnl hesspnnl requested a review from kheal May 22, 2025 18:01
@hesspnnl hesspnnl marked this pull request as ready for review May 22, 2025 18:01
@hesspnnl hesspnnl requested review from eecavanna and turbomam May 22, 2025 18:01
@hesspnnl hesspnnl marked this pull request as draft May 22, 2025 18:08
@kheal kheal changed the title Make eluent_introduction_category & has_mass_spectrometry_configuration slots on MassSpectrometry objects required and implement migrator Make eluent_introduction_category & has_mass_spectrometry_configuration slots on MassSpectrometry required and implement migrator May 22, 2025
@hesspnnl hesspnnl marked this pull request as ready for review May 23, 2025 14:28
Copy link
Collaborator

@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.

The migrator looks good to me. I left one PR comment about checking whether a key exists versus checking whether it exists and the value of its item is not None.

…migrator_from_11_7_0_to_11_8_0_part_3.py

Co-authored-by: eecavanna <[email protected]>
Copy link
Member

@turbomam turbomam left a comment

Choose a reason for hiding this comment

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

Wow, you have been prolific recently

I have the same questions here that I had about invalid examples files in the following PR. You don't need to address that in both places.

@hesspnnl hesspnnl merged commit 74681d8 into main May 28, 2025
3 checks passed
@hesspnnl hesspnnl deleted the 2455-make-modifications-to-massspectromery branch May 28, 2025 20:50
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.

Make modifications to MassSpectromery's eluent_introduction_category
4 participants