Skip to content

Fixing issues related to NMDC studies and data objects#208

Merged
jeff-cohere merged 16 commits intomainfrom
nmdc-biosample-cardinality-fix
Apr 16, 2026
Merged

Fixing issues related to NMDC studies and data objects#208
jeff-cohere merged 16 commits intomainfrom
nmdc-biosample-cardinality-fix

Conversation

@jeff-cohere
Copy link
Copy Markdown
Collaborator

@jeff-cohere jeff-cohere commented Apr 10, 2026

  • NMDC biosamples are no longer transferred -- only data objects
  • File IDs for data objects are prefixed with their study IDs so we don't
    need the graph.
  • Several errors are now properly propagated and can affect the success of a
    transfer.
  • Test reports are less noisy (omitted the -v flag)

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 10, 2026

PR Preview Action v1.8.1

QR code for preview link

🚀 View preview at
https://kbase.github.io/dts/pr-preview/pr-208/

Built to branch gh-pages at 2026-04-15 19:30 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the NMDC database integration to support workflows that reference multiple biosamples per data object, and bumps the service patch version.

Changes:

  • Bump service patch version from 0.11.2 to 0.11.3.
  • Update NMDC workflow metadata retrieval to return multiple biosamples instead of erroring when more than one is present.
  • Adjust NMDC tests to reflect the renamed multi-biosample workflow helper.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
services/version.go Patch version bump to reflect the feature change.
databases/nmdc/database.go Switch workflow biosample handling from single biosample to multiple biosamples.
databases/nmdc/database_test.go Rename/update tests for the new multi-biosample workflow helper.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread databases/nmdc/database.go Outdated
Comment thread databases/nmdc/database_test.go Outdated
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 10, 2026

Codecov Report

❌ Patch coverage is 53.42466% with 68 lines in your changes missing coverage. Please review.
✅ Project coverage is 61.42%. Comparing base (51a2e88) to head (2c9f9c7).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
databases/nmdc/database.go 70.10% 18 Missing and 11 partials ⚠️
transfers/manifestor.go 12.50% 13 Missing and 1 partial ⚠️
endpoints/globus/endpoint.go 0.00% 13 Missing ⚠️
services/prototype.go 0.00% 5 Missing ⚠️
databases/errors.go 0.00% 4 Missing ⚠️
transfers/mover.go 72.72% 1 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #208      +/-   ##
==========================================
- Coverage   62.40%   61.42%   -0.99%     
==========================================
  Files          34       34              
  Lines        4533     4521      -12     
==========================================
- Hits         2829     2777      -52     
- Misses       1391     1426      +35     
- Partials      313      318       +5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jeff-cohere jeff-cohere changed the title Allowing for multiple biosamples per NMDC data object. Fixing issues related to NMDC studies and data objects Apr 14, 2026
…r statuses.

* NMDC biosamples are no longer transferred -- only data objects
* File IDs for data objects are prefixed with their study IDs so we don't
  need the graph.
* Several errors are now properly propagated and can affect the success of a
  transfer.
This method is internal and tested indirectly. I've added a comment to document its
needs.
@jeff-cohere jeff-cohere requested review from Copilot and mattldawson and removed request for Copilot April 16, 2026 20:06
Copy link
Copy Markdown
Collaborator

@mattldawson mattldawson 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!

@jeff-cohere jeff-cohere merged commit deee0fe into main Apr 16, 2026
14 checks passed
@jeff-cohere jeff-cohere deleted the nmdc-biosample-cardinality-fix branch April 16, 2026 20:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants