Skip to content

Confine scheduled observation entries to their own animal - #759

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.
  • Added a Selenium test that orders the same observation for two animals in one submission, records it for one of them, and verifies the other animal gets nothing.

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.

@NIRC-IT NIRC-IT left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Approved

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

Unrelated test failures

@labkey-martyp
labkey-martyp merged commit 21a8a3d into release26.7-SNAPSHOT Sep 15, 2026
7 of 8 checks passed
@labkey-martyp
labkey-martyp deleted the 26.7_fb_scheduled_obs_animal_scope branch September 15, 2026 11:58
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