Skip to content

Tighten birth and arrival entry and move lookup admin to one page - #28

Merged
labkey-martyp merged 3 commits into
release26.7-SNAPSHOTfrom
26.7_fb_birth_arrival_assignments
Aug 27, 2026
Merged

Tighten birth and arrival entry and move lookup admin to one page#28
labkey-martyp merged 3 commits into
release26.7-SNAPSHOTfrom
26.7_fb_birth_arrival_assignments

Conversation

@labkey-martyp

Copy link
Copy Markdown
Contributor

Rationale

Make the birth and arrival forms record a complete animal, and give the housing hierarchy and the assignment lists one place to be maintained. An animal could be entered with no protocol, project or group assignment, because each of those lived in a separate section of the form that was easy to leave empty, and two births could claim the same conception when they were entered together. Separately, the housing location tables and the investigator, project and protocol lists each carried their own data entry form, and most of the hierarchy could only be deleted rather than retired.

Related Pull Requests

None.

Changes

  • Enter an animal's opening protocol, project and group assignment on its birth or arrival row, where each is required, rather than in separate sections that could be left empty.

  • Pick the conception a birth came from by clicking it on the row, and refuse a second birth against a conception that already has one, including a birth entered on the same form.

  • Maintain the housing location hierarchy and the investigator, project and protocol lists through Manage Lookup Tables instead of a data entry form for each, and allow buildings, floors and cages to be retired rather than only deleted.

  • Drop the ways of adding a row that the birth and conception forms should not offer, and show the protocol rather than its display name on the animal snapshot.

  • Correct two species entries and load the source facility list.

The birth and arrival forms carried separate protocol, project and group assignment sections, so an animal could be entered with none of them. Those sections are gone: the three assignments are now required fields on the animal's own row, and the trigger scripts open the matching records.

The conception on a birth row can now be changed by clicking its cell, and a conception may only ever have one birth, including across rows entered together, which the previous check could not see.

The housing location hierarchy and the investigator, project and protocol lists are now maintained through Manage Lookup Tables instead of their own data entry forms, and buildings, floors and cages gain a disable date so the whole hierarchy can be retired rather than only deleted. Retired values drop out of the pickers but still show where they were already recorded.

Also corrects two species entries and loads the source facility list.
The cage pickers now label a cage by its derived location rather than its name, so the birth and arrival tests enter and expect the full location.

Live validation sends only the row that just changed, so a rule comparing the rows of one form entry can report only by refusing the save; the duplicate conception test now asserts that refusal at submit rather than during entry.
A refused save leaves the browser on the form, so the confirmation click cannot wait for a page load, and the refusal is logged as a server error that the run's error check would otherwise fail the test over.
@labkey-martyp
labkey-martyp merged commit d75f9fa into release26.7-SNAPSHOT Aug 27, 2026
1 check was pending
@labkey-martyp
labkey-martyp deleted the 26.7_fb_birth_arrival_assignments branch August 27, 2026 14:31
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