Assay: resolve a single provider/protocol before creating protocol schema #6057
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Rationale
When attempting to resolve a
TableInfo
from aDomain
for theAssayDomainKind
we currently iterate over all the assay definitions in a container and for each provider we callprovider.createProtocolSchema()
and then hydrate fullTableInfo
instances until we find a match.This refactors the approach to first resolve the singularly desired provider and only induce the
provider.createProtocolSchema()
call for that provider to then resolve theTableInfo
.Related Pull Requests
Changes
AssayManager.getTableInfoForDomainId()
by directly resolving the assay protocol/provider inAssayDomainKind.getTableInfo()
and then instantiating a new schema for only that assay.AbstractAssayProvider.getDomains()
intogetDomains()
andgetDomainsAndDefaultValues()
to makegetDomains()
more clear in its role and what it will return (i.e. aList<Domain>
rather than aList<Pair<Domain, Map<DomainProperty, Object>>>
)assay-assayList.api
matching on protocol "name" and provider "type" to be case-insensitive.