Skip to content

Add bulk file import to Births and treat UNKNOWN as no parent - #63

Merged
labkey-martyp merged 6 commits into
release26.7-SNAPSHOTfrom
26.7_fb_birth_bulk_add_unknown_pregnancy
Oct 11, 2026
Merged

labkey-martyp merged 6 commits into
release26.7-SNAPSHOTfrom
26.7_fb_birth_bulk_add_unknown_pregnancy

Conversation

@labkey-martyp

Copy link
Copy Markdown
Contributor

Rationale

This PR adds bulk file import to the Births section and stops the UNKNOWN placeholder animal from being treated as a real parent.

UNKNOWN stands in for a dam that isn't known. Stored as a dam, it made every animal recorded against it a sibling of every other, inflated kinship, and let it supply a newborn's species, origin and generation.

Related Pull Requests

None.

Changes

  • Births section has an Add From File action for bulk import from Excel or TSV.
  • UNKNOWN is stored as no parent when a demographics record is written, and no longer supplies a newborn's attributes.
  • Pedigree, parents, siblings, offspring, parentage and family queries ignore UNKNOWN as a parent, which also fixes kinship and the parent data-quality reports.
  • The Animal Details pregnancy status is blank for the UNKNOWN animal.

Passed through, the placeholder made kinship relate every animal recorded against it.
The placeholder made every parent-based query treat its offspring as siblings, and let it supply a newborn's species, origin and generation.
Parents now drops it, and offspring and parentage read through parents, so sibling, offspring and data-quality reports no longer group animals under it.

@labkey-martyp labkey-martyp left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Tests passing

@labkey-martyp
labkey-martyp merged commit c77d6b9 into release26.7-SNAPSHOT Oct 11, 2026
4 checks passed
@labkey-martyp
labkey-martyp deleted the 26.7_fb_birth_bulk_add_unknown_pregnancy branch October 11, 2026 18:11
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.

2 participants