Skip to content

Add NMDC Biosample-Study cross-table join tests (#136)#148

Merged
amc-corey-cox merged 3 commits intomainfrom
cross-table-lookup-test-coverage
Mar 10, 2026
Merged

Add NMDC Biosample-Study cross-table join tests (#136)#148
amc-corey-cox merged 3 commits intomainfrom
cross-table-lookup-test-coverage

Conversation

@turbomam
Copy link
Copy Markdown
Member

@turbomam turbomam commented Mar 9, 2026

Summary

  • Adds 2 integration tests for the joins: feature landed in PR Add cross-table lookup support for join-based transformations #136
  • Tests Biosample-Study denormalization: enriching biosample rows with Study metadata (PI name, ecosystem, study name) by joining on associated_studies
  • Covers matched joins (2 biosamples with corresponding studies), orphan handling (null propagation when study doesn't exist), and field preservation with active joins

Test plan

🤖 Generated with Claude Code

Two integration tests for the joins: feature:
- Biosample rows enriched with Study metadata via join on associated_studies
  (matched joins, orphan with null propagation)
- Field preservation: all biosample-native fields pass through unchanged
  when joins are active

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings March 9, 2026 20:21
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

Adds NMDC-specific integration coverage for the spec-driven joins: cross-table lookup feature by validating Biosample → Study denormalization behavior, including null propagation for missing joined rows.

Changes:

  • Introduces an integration test that enriches Biosample rows with Study metadata via joins: on associated_studies, including orphan handling (null propagation).
  • Adds a second integration test ensuring biosample-native fields are preserved unchanged when joins are active.

amc-corey-cox and others added 2 commits March 9, 2026 16:44
Update docstring to reference the cross-table join feature rather than
the now-merged branch name.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@amc-corey-cox amc-corey-cox merged commit 8a5559a into main Mar 10, 2026
11 checks passed
@amc-corey-cox amc-corey-cox deleted the cross-table-lookup-test-coverage branch March 10, 2026 21:21
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