Skip to content

Fix SNPRC EHR setup for creating SND Categories#959

Merged
labkey-bpatel merged 1 commit into
release26.3-SNAPSHOTfrom
26.3_fb_test_fixes
Jul 2, 2026
Merged

Fix SNPRC EHR setup for creating SND Categories#959
labkey-bpatel merged 1 commit into
release26.3-SNAPSHOTfrom
26.3_fb_test_fixes

Conversation

@labkey-bpatel

Copy link
Copy Markdown
Contributor

Rationale

The SNPRC_EHRTest setup was failing when SND categories already existed in the target folder — createSNDCategories unconditionally inserted every entry in SND_CATEGORIES, causing duplicate-key errors on re-runs. Also replaced a hand-built populateData.view URL with WebTestHelper.buildURL(...) so the action name is validated the same way as elsewhere in the suite.

Related Pull Requests

  • None

Changes

  • createSNDCategories now selects existing rows from snd.PkgCategories first and only inserts categories that are not already present; skips the insert entirely when there is nothing new to add.
  • populateInitialData builds its populateData action URL via WebTestHelper.buildURL("SNPRC_EHR", getContainerPath(), "populateData") instead of concatenating getBaseURL() with a literal .view path.

@labkey-bpatel labkey-bpatel self-assigned this Jul 2, 2026
@labkey-bpatel labkey-bpatel merged commit df214a9 into release26.3-SNAPSHOT Jul 2, 2026
9 checks passed
@labkey-bpatel labkey-bpatel deleted the 26.3_fb_test_fixes branch July 2, 2026 16:15
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