Skip to content

Assay: update instead of overwrite domain fields#6905

Merged
labkey-nicka merged 4 commits intodevelopfrom
fb_assay_domain_field
Aug 12, 2025
Merged

Assay: update instead of overwrite domain fields#6905
labkey-nicka merged 4 commits intodevelopfrom
fb_assay_domain_field

Conversation

@labkey-nicka
Copy link
Contributor

@labkey-nicka labkey-nicka commented Aug 5, 2025

Rationale

While testing changes in #6883 related to https://github.com/LabKey/internal-issues/issues/657 I discovered that it was not round-tripping the lookupIsValid property on the result domain field as I would have expected. Come to find out that AssayDomainServiceImpl.getDomain() is unintentionally overwriting property descriptor processing done by DomainUtil.getDomainDescriptor(). This updates assay domain processing to perform a deep copy of the fields procured by the domain and then apply assay-specific overrides on those fields.

Related Pull Requests

Changes

  • Update AssayDomainServiceImpl.getDomain() to no longer overwrite fields
  • Remove duplicative processing of default values
  • Update and add tests

@labkey-nicka labkey-nicka requested a review from cnathe August 5, 2025 20:05
@labkey-nicka labkey-nicka self-assigned this Aug 5, 2025
@labkey-nicka labkey-nicka force-pushed the fb_assay_domain_field branch from fee8d73 to 4dad4dd Compare August 6, 2025 19:37
@labkey-nicka labkey-nicka requested a review from cnathe August 6, 2025 19:38
@labkey-nicka labkey-nicka force-pushed the fb_assay_domain_field branch from 4dad4dd to c5de31f Compare August 7, 2025 19:49
@labkey-nicka labkey-nicka force-pushed the fb_assay_domain_field branch from c5de31f to d08205f Compare August 8, 2025 00:04
@labkey-nicka labkey-nicka merged commit b5cdf97 into develop Aug 12, 2025
11 checks passed
@labkey-nicka labkey-nicka deleted the fb_assay_domain_field branch August 12, 2025 15:41
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