Skip to content

Conversation

@labkey-bpatel
Copy link
Contributor

@labkey-bpatel labkey-bpatel commented Sep 1, 2025

Rationale

Generating a cache key with the Study Entity Id requires the Study to be loaded. This becomes an issue when populating lookups - ex. for ehr_lookups.procedures, we want to allow procedures trigger to be registered and unregistered (as done in the related PR), which hits the code path addressed in this PR. In tests, lookups are populated before the Study is created, so the Study Entity Id isn't always available at that point - this causes test failures for the clients that populate ehr_lookups.procedures.

Related Pull Requests

Changes

  • Use EHR Study Container Entity Id instead of Study Entity Id to generate cache key

… when trying to populate lookup but goes through this code path when using registering and unregistering lookups trigger script).
Copy link
Collaborator

@bbimber bbimber left a comment

Choose a reason for hiding this comment

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

i cant think of any reason this would be a problem, but I didnt do any testing.

@labkey-bpatel labkey-bpatel merged commit d2da682 into release25.7-SNAPSHOT Sep 2, 2025
9 of 11 checks passed
@labkey-bpatel labkey-bpatel deleted the 25.7_fb_qcstate_cache branch September 2, 2025 16:25
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.

4 participants