Skip to content

Confine scheduled observation entries to their own animal - #44

Merged
labkey-martyp merged 1 commit into
release26.7-SNAPSHOTfrom
26.7_fb_scheduled_obs_animal_scope
Sep 15, 2026
Merged

labkey-martyp merged 1 commit into
release26.7-SNAPSHOTfrom
26.7_fb_scheduled_obs_animal_scope

Conversation

@labkey-martyp

Copy link
Copy Markdown
Contributor

Rationale

Fixes scheduled observation entries spilling onto unrelated animals: recording an observation from the schedule for one animal also created entries for every other animal whose observation order came from the same ordering session.

An observation order's taskid identifies that ordering session rather than the animal, so the schedule link carries a taskid that several animals' orders share. The form grid loads only the animal it was opened for, but the save path did not narrow to that animal, and could also file the entered row against another animal's case and order.

Related Pull Requests

None.

Changes

  • Scheduled observation entries are now confined to the animal the form was opened for, so an order taskid shared across animals no longer spreads the entry to them.

An observation order's taskid identifies the ordering session, so orders for several animals share one; the scheduled-observation lookup filtered on taskid alone and spilled the entry onto every animal in that order.

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

@labkey-martyp
labkey-martyp merged commit fcd070d into release26.7-SNAPSHOT Sep 15, 2026
4 checks passed
@labkey-martyp
labkey-martyp deleted the 26.7_fb_scheduled_obs_animal_scope branch September 15, 2026 10:20
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