Skip to content

[bot] Merge 26.3 to 26.7 - #311

Merged
github-actions[bot] merged 2 commits into
release26.7-SNAPSHOTfrom
26.7_fb_bot_merge_26.3
Sep 14, 2026
Merged

github-actions[bot] merged 2 commits into
release26.7-SNAPSHOTfrom
26.7_fb_bot_merge_26.3

Conversation

@github-actions

Copy link
Copy Markdown

Generated automatically.
Merging changes from: 68f2802
Approve all matching PRs simultaneously.
Approval will trigger automatic merge.
Verify all PRs before approving: https://internal.labkey.com/Scrumtime/Backlog/harvest-gitOpenPullRequests.view?branch=26.7_fb_bot_merge_26.3

labkey-martyp and others added 2 commits September 10, 2026 09:22
## Rationale

Eleven trigger scripts across the EHR compliance and ONPRC modules had
each copied the same loop for case-normalizing lookup values on write,
so this adds the single shared implementation they can call instead. The
helper takes the LookupValidationHelper as an argument rather than
constructing one, because that class caches each lookup target's
allowable values per instance: callers keep creating it at script scope,
where the target table is read once per batch instead of once per row.

## Related Pull Requests

- LabKey/ehrModules#1199 — converts the EHR
compliance scripts to this helper.
- LabKey/onprcEHRModules#1885 — converts the
ONPRC scripts.

This must merge and deploy first. A consumer script that requires the
new function against an un-updated LDK fails at script compile time.

## Changes

- Adds `LDK.Server.Utils.normalizeLookupFields`, which replaces each
named field's value with the canonically-cased value from its lookup
target and reports a field error for any value the target does not
contain.
- Documents why the validation helper is a parameter, since creating one
per call would silently turn a per-batch read of each lookup target into
a per-row read.

## Tasks

- [x] Claude Code Review
- [x] Code Review
@github-actions
github-actions Bot merged commit d8f9e68 into release26.7-SNAPSHOT Sep 14, 2026
8 checks passed
@github-actions
github-actions Bot deleted the 26.7_fb_bot_merge_26.3 branch September 14, 2026 18:45
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