Skip to content

Commit

Permalink
Merge pull request #1790 from alliance-genome/SCRUM-4672
Browse files Browse the repository at this point in the history
SCRUM-4672 LinkML v2.9.1 migration
  • Loading branch information
markquintontulloch authored Jan 13, 2025
2 parents ce325d6 + 3332b64 commit 423bed7
Show file tree
Hide file tree
Showing 611 changed files with 2,659 additions and 2,840 deletions.
8 changes: 4 additions & 4 deletions SEARCH.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ This will be the size of the page that comes back.
"order": 1
},
{
"field": "diseaseAnnotationSubject.modEntityId",
"field": "diseaseAnnotationSubject.primaryExternalId",
"order": 1
}
],
Expand Down Expand Up @@ -204,7 +204,7 @@ Search Payload:
"order": 1
},
{
"field": "diseaseAnnotationSubject.modEntityId",
"field": "diseaseAnnotationSubject.primaryExternalId",
"order": 1
}
],
Expand All @@ -224,7 +224,7 @@ Return Payload
"totalResults": 1163,
"returnedRecords": 1,
"debug": "true",
"esQuery": "{\"query\":{\"bool\":{\"must\":[{\"simple_query_string\":{\"boost\":31000.0,\"query\":\"false\",\"default_operator\":\"or\",\"fields\":[\"internal\"]}},{\"simple_query_string\":{\"boost\":21000.0,\"query\":\"false\",\"default_operator\":\"or\",\"fields\":[\"obsolete\"]}},{\"simple_query_string\":{\"boost\":11000.0,\"query\":\"wb\",\"default_operator\":\"and\",\"fields\":[\"uniqueId\"]}},{\"match_all\":{}}],\"minimum_should_match\":\"0\"}},\"sort\":[{\"diseaseAnnotationSubject.symbol_keyword\":{\"order\":\"asc\",\"unmapped_type\":\"keyword\"}},{\"diseaseAnnotationSubject.name_keyword\":{\"order\":\"asc\",\"unmapped_type\":\"keyword\"}},{\"diseaseAnnotationSubject.modEntityId_keyword\":{\"order\":\"asc\",\"unmapped_type\":\"keyword\"}}],\"docvalue_fields\":[\"_entity_type\"],\"_source\":false}"
"esQuery": "{\"query\":{\"bool\":{\"must\":[{\"simple_query_string\":{\"boost\":31000.0,\"query\":\"false\",\"default_operator\":\"or\",\"fields\":[\"internal\"]}},{\"simple_query_string\":{\"boost\":21000.0,\"query\":\"false\",\"default_operator\":\"or\",\"fields\":[\"obsolete\"]}},{\"simple_query_string\":{\"boost\":11000.0,\"query\":\"wb\",\"default_operator\":\"and\",\"fields\":[\"uniqueId\"]}},{\"match_all\":{}}],\"minimum_should_match\":\"0\"}},\"sort\":[{\"diseaseAnnotationSubject.symbol_keyword\":{\"order\":\"asc\",\"unmapped_type\":\"keyword\"}},{\"diseaseAnnotationSubject.name_keyword\":{\"order\":\"asc\",\"unmapped_type\":\"keyword\"}},{\"diseaseAnnotationSubject.primaryExternalId_keyword\":{\"order\":\"asc\",\"unmapped_type\":\"keyword\"}}],\"docvalue_fields\":[\"_entity_type\"],\"_source\":false}"
}
```

Expand Down Expand Up @@ -286,7 +286,7 @@ Destringify the esQuery:
}
},
{
"diseaseAnnotationSubject.modEntityId_keyword": {
"diseaseAnnotationSubject.primaryExternalId_keyword": {
"order": "asc",
"unmapped_type": "keyword"
}
Expand Down
4 changes: 2 additions & 2 deletions src/main/cliapp/src/components/Editors/GeneEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const geneSearch = (event, setFiltered, setInputValue) => {
const searchService = new SearchService();
const autocompleteFields = [
'curie',
'modEntityId',
'primaryExternalId',
'crossReferences.referencedCurie',
'geneFullName.formatText',
'geneFullName.displayText',
Expand Down Expand Up @@ -37,7 +37,7 @@ export const GeneEditor = ({ props, errorMessages, onChange, dataKey, fieldName
initialValue={getIdentifier(props?.rowData?.[fieldName])}
rowProps={props}
fieldName={fieldName}
subField="modEntityId"
subField="primaryExternalId"
valueDisplay={(item, setAutocompleteHoverItem, op, query) => (
<SubjectAutocompleteTemplate
item={item}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ describe('GenomicEntityListTemplate', () => {
geneFullName: {
displayText: 'Gene Full Name 2',
},
modEntityId: 'ID2',
primaryExternalId: 'ID2',
},
{
geneSymbol: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ describe('GenomicEntityTemplate', () => {
it('should render genomicEntity name and id when genomicEntity has name', () => {
const genomicEntity = {
name: 'genomicEntity Name',
modEntityId: 'ID',
primaryExternalId: 'ID',
};

const result = render(<GenomicEntityTemplate genomicEntity={genomicEntity} />);
Expand Down Expand Up @@ -94,7 +94,7 @@ describe('GenomicEntityTemplate', () => {
geneSymbol: {
displayText: 'Gene <sup>Symbol</sup>',
},
modEntityId: 'ID',
primaryExternalId: 'ID',
};

const { container } = render(<GenomicEntityTemplate genomicEntity={genomicEntity} />);
Expand Down
70 changes: 31 additions & 39 deletions src/main/cliapp/src/constants/FilterFields.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ export const FIELD_SETS = Object.freeze({
},
agmAggregationFieldSet: {
filterName: 'alleleAggregationFilter',
fields: ['dataProvider.sourceOrganization.abbreviation'],
fields: ['dataProvider.abbreviation'],
},
agmSecondaryIdsFieldSet: {
filterName: 'agmSecondaryIdsFilter',
fields: ['agmSecondaryIds.secondaryId', 'agmSecondaryIds.evidence.curie'],
},
alleleAggregationFieldSet: {
filterName: 'alleleAggregationFilter',
fields: ['dataProvider.sourceOrganization.abbreviation'],
fields: ['dataProvider.abbreviation'],
},
alleleFunctionalImpactsFieldSet: {
filterName: 'alleleFunctionalImpactsFilter',
Expand Down Expand Up @@ -92,7 +92,7 @@ export const FIELD_SETS = Object.freeze({
'assertedAllele.alleleSymbol.displayText',
'assertedAllele.alleleSymbol.formatText',
'assertedAllele.curie',
'assertedAllele.modEntityId',
'assertedAllele.primaryExternalId',
'assertedAllele.modInternalId',
],
},
Expand All @@ -102,7 +102,7 @@ export const FIELD_SETS = Object.freeze({
'assertedGenes.geneSymbol.displayText',
'assertedGenes.geneSymbol.formatText',
'assertedGenes.curie',
'assertedGenes.modEntityId',
'assertedGenes.primaryExternalId',
'assertedGenes.modInternalId',
],
},
Expand Down Expand Up @@ -176,7 +176,7 @@ export const FIELD_SETS = Object.freeze({
},
constructAggregationFieldSet: {
filterName: 'constructAggregationFilter',
fields: ['dataProvider.sourceOrganization.abbreviation'],
fields: ['dataProvider.abbreviation'],
},
constructComponentsFieldSet: {
filterName: 'constructComponentsFilter',
Expand All @@ -188,7 +188,7 @@ export const FIELD_SETS = Object.freeze({
'constructGenomicEntityAssociations.constructGenomicEntityAssociationObject.symbol',
'constructGenomicEntityAssociations.constructGenomicEntityAssociationObject.name',
'constructGenomicEntityAssociations.constructGenomicEntityAssociationObject.curie',
'constructGenomicEntityAssociations.constructGenomicEntityAssociationObject.modEntityId',
'constructGenomicEntityAssociations.constructGenomicEntityAssociationObject.primaryExternalId',
'constructGenomicEntityAssociations.constructGenomicEntityAssociationObject.modInternalId',
'constructGenomicEntityAssociations.relation.name',
],
Expand Down Expand Up @@ -223,11 +223,7 @@ export const FIELD_SETS = Object.freeze({
},
dataProviderFieldSet: {
filterName: 'dataProviderFilter',
fields: [
'dataProvider.sourceOrganization.abbreviation',
'dataProvider.sourceOrganization.fullName',
'dataProvider.sourceOrganization.shortName',
],
fields: ['dataProvider.abbreviation', 'dataProvider.fullName', 'dataProvider.shortName'],
},
dataCreatedFieldSet: {
filterName: 'dateCreatedFilter',
Expand All @@ -245,8 +241,8 @@ export const FIELD_SETS = Object.freeze({
'annotationType.name',
'diseaseGeneticModifierRelation.name',
'diseaseQualifiers.name',
'dataProvider.sourceOrganization.abbreviation',
'secondaryDataProvider.sourceOrganization.abbreviation',
'dataProvider.abbreviation',
'secondaryDataProvider.abbreviation',
'evidenceCodes.abbreviation',
],
},
Expand All @@ -264,7 +260,7 @@ export const FIELD_SETS = Object.freeze({
},
diseaseAnnotationSubjectFieldSet: {
filterName: 'diseaseAnnotationSubjectFilter',
fields: ['diseaseAnnotationSubject.symbol', 'diseaseAnnotationSubject.modEntityId'],
fields: ['diseaseAnnotationSubject.symbol', 'diseaseAnnotationSubject.primaryExternalId'],
},
diseaseQualifiersFieldSet: {
filterName: 'diseaseQualifiersFilter',
Expand All @@ -288,15 +284,15 @@ export const FIELD_SETS = Object.freeze({
},
geneAggregationFieldSet: {
filterName: 'geneAggregationFilter',
fields: ['dataProvider.sourceOrganization.abbreviation'],
fields: ['dataProvider.abbreviation'],
},
geneAssociationSubjectFieldSet: {
filterName: 'geneAssociationSubjectFilter',
fields: [
'geneAssociationSubject.geneSymbol.displayText',
'geneAssociationSubject.geneSymbol.formatText',
'geneAssociationSubject.curie',
'geneAssociationSubject.modEntityId',
'geneAssociationSubject.primaryExternalId',
'geneAssociationSubject.modInternalId',
],
},
Expand All @@ -306,7 +302,7 @@ export const FIELD_SETS = Object.freeze({
'geneGeneAssociationObject.geneSymbol.displayText',
'geneGeneAssociationObject.geneSymbol.formatText',
'geneGeneAssociationObject.curie',
'geneGeneAssociationObject.modEntityId',
'geneGeneAssociationObject.primaryExternalId',
'geneGeneAssociationObject.modInternalId',
],
},
Expand Down Expand Up @@ -335,7 +331,7 @@ export const FIELD_SETS = Object.freeze({
fields: [
'diseaseGeneticModifierAgms.name',
'diseaseGeneticModifierAgms.curie',
'diseaseGeneticModifierAgms.modEntityId',
'diseaseGeneticModifierAgms.primaryExternalId',
'diseaseGeneticModifierAgms.modInternalId',
],
},
Expand All @@ -345,7 +341,7 @@ export const FIELD_SETS = Object.freeze({
'diseaseGeneticModifierAlleles.alleleSymbol.displayText',
'diseaseGeneticModifierAlleles.alleleSymbol.formatText',
'diseaseGeneticModifierAlleles.curie',
'diseaseGeneticModifierAlleles.modEntityId',
'diseaseGeneticModifierAlleles.primaryExternalId',
'diseaseGeneticModifierAlleles.modInternalId',
],
},
Expand All @@ -355,7 +351,7 @@ export const FIELD_SETS = Object.freeze({
'diseaseGeneticModifierGenes.geneSymbol.displayText',
'diseaseGeneticModifierGenes.geneSymbol.formatText',
'diseaseGeneticModifierGenes.curie',
'diseaseGeneticModifierGenes.modEntityId',
'diseaseGeneticModifierGenes.primaryExternalId',
'diseaseGeneticModifierGenes.modInternalId',
],
},
Expand Down Expand Up @@ -405,7 +401,7 @@ export const FIELD_SETS = Object.freeze({
'inferredAllele.alleleSymbol.displayText',
'inferredAllele.alleleSymbol.formatText',
'inferredAllele.curie',
'inferredAllele.modEntityId',
'inferredAllele.primaryExternalId',
'inferredAllele.modInternalId',
],
},
Expand All @@ -415,7 +411,7 @@ export const FIELD_SETS = Object.freeze({
'inferredGene.geneSymbol.displayText',
'inferredGene.geneSymbol.formatText',
'inferredGene.curie',
'inferredGene.modEntityId',
'inferredGene.primaryExternalId',
'inferredGene.modInternalId',
],
},
Expand All @@ -425,7 +421,7 @@ export const FIELD_SETS = Object.freeze({
'interactorAGeneticPerturbation.alleleSymbol.displayText',
'interactorAGeneticPerturbation.alleleSymbol.formatText',
'interactorAGeneticPerturbation.curie',
'interactorAGeneticPerturbation.modEntityId',
'interactorAGeneticPerturbation.primaryExternalId',
'interactorAGeneticPerturbation.modInternalId',
],
},
Expand All @@ -435,7 +431,7 @@ export const FIELD_SETS = Object.freeze({
'interactorBGeneticPerturbation.alleleSymbol.displayText',
'interactorBGeneticPerturbation.alleleSymbol.formatText',
'interactorBGeneticPerturbation.curie',
'interactorBGeneticPerturbation.modEntityId',
'interactorBGeneticPerturbation.primaryExternalId',
'interactorBGeneticPerturbation.modInternalId',
],
},
Expand Down Expand Up @@ -483,9 +479,9 @@ export const FIELD_SETS = Object.freeze({
filterName: 'memberTermsFilter',
fields: ['memberTerms.name'],
},
modentityidFieldSet: {
filterName: 'modentityidFilter',
fields: ['modEntityId'],
primaryexternalidFieldSet: {
filterName: 'primaryexternalidFilter',
fields: ['primaryExternalId'],
},
modinternalidFieldSet: {
filterName: 'modinternalidFilter',
Expand Down Expand Up @@ -532,7 +528,7 @@ export const FIELD_SETS = Object.freeze({
},
paAggregationFieldSet: {
filterName: 'paAggregationFilter',
fields: ['relation.name', 'dataProvider.sourceOrganization.abbreviation'],
fields: ['relation.name', 'dataProvider.abbreviation'],
},
paConditionRelationsSummaryFieldSet: {
filterName: 'paConditionRelationsFilter',
Expand All @@ -548,7 +544,7 @@ export const FIELD_SETS = Object.freeze({
'phenotypeAnnotationSubject.symbol',
'phenotypeAnnotationSubject.name',
'phenotypeAnnotationSubject.curie',
'phenotypeAnnotationSubject.modEntityId',
'phenotypeAnnotationSubject.primaryExternalId',
'phenotypeAnnotationSubject.modInternalId',
],
},
Expand Down Expand Up @@ -578,11 +574,7 @@ export const FIELD_SETS = Object.freeze({
},
secondaryDataProviderFieldSet: {
filterName: 'secondaryDataProviderFilter',
fields: [
'secondaryDataProvider.sourceOrganization.abbreviation',
'secondaryDataProvider.sourceOrganization.fullName',
'secondaryDataProvider.sourceOrganization.shortName',
],
fields: ['secondaryDataProvider.abbreviation', 'secondaryDataProvider.fullName', 'secondaryDataProvider.shortName'],
},
secondaryIdsFieldSet: {
filterName: 'secondaryIdsFilter',
Expand All @@ -593,7 +585,7 @@ export const FIELD_SETS = Object.freeze({
fields: [
'sgdStrainBackground.name',
'sgdStrainBackground.curie',
'sgdStrainBackground.modEntityId',
'sgdStrainBackground.primaryExternalId',
'sgdStrainBackground.modInternalId',
],
},
Expand Down Expand Up @@ -631,7 +623,7 @@ export const FIELD_SETS = Object.freeze({
},
speciesAggregationFieldSet: {
filterName: 'speciesAggregationFilter',
fields: ['dataProvider.sourceOrganization.abbreviation'],
fields: ['dataProvider.abbreviation'],
},
speciesAssemblyFieldSet: {
filterName: 'speciesAssemblyFilter',
Expand Down Expand Up @@ -667,7 +659,7 @@ export const FIELD_SETS = Object.freeze({
},
variantAggregationFieldSet: {
filterName: 'variantAggregationFilter',
fields: ['variantStatus.name', 'dataProvider.sourceOrganization.abbreviation'],
fields: ['variantStatus.name', 'dataProvider.abbreviation'],
},
variantStatusFieldSet: {
filterName: 'variantStatusFilter',
Expand Down Expand Up @@ -703,7 +695,7 @@ export const FIELD_SETS = Object.freeze({
'with.geneSymbol.displayText',
'with.geneSymbol.formatText',
'with.curie',
'with.modEntityId',
'with.primaryExternalId',
'with.modInternalId',
],
},
Expand Down Expand Up @@ -860,7 +852,7 @@ export const FILTER_CONFIGS = Object.freeze({
filterComponentType: 'input',
fieldSets: [FIELD_SETS.literatureCrossReferenceFieldSet],
},
modentityidFilterConfig: { filterComponentType: 'input', fieldSets: [FIELD_SETS.modentityidFieldSet] },
primaryexternalidFilterConfig: { filterComponentType: 'input', fieldSets: [FIELD_SETS.primaryexternalidFieldSet] },
modinternalidFilterConfig: { filterComponentType: 'input', fieldSets: [FIELD_SETS.modinternalidFieldSet] },
nameFilterConfig: { filterComponentType: 'input', fieldSets: [FIELD_SETS.nameFieldSet] },
namespaceFilterConfig: { filterComponentType: 'input', fieldSets: [FIELD_SETS.namespaceFieldSet] },
Expand Down
6 changes: 3 additions & 3 deletions src/main/cliapp/src/constants/SortFields.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export const SORT_FIELDS = Object.freeze([
'uniqueId',
'modEntityId',
'primaryExternalId',
'modInternalId',
'diseaseAnnotationSubject.symbol',
'phenotypeAnnotationSubject.symbol',
Expand All @@ -26,8 +26,8 @@ export const SORT_FIELDS = Object.freeze([
'assertedGenes.geneSymbol.displayText',
'inferredAllele.alleleSymbol.displayText',
'assertedAllele.alleleSymbol.displayText',
'dataProvider.sourceOrganization.abbreviation',
'secondaryDataProvider.sourceOrganization.abbreviation',
'dataProvider.abbreviation',
'secondaryDataProvider.abbreviation',
'updatedBy.uniqueId',
'dateUpdated',
'createdBy.uniqueId',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ export const AffectedGenomicModelTable = () => {
filterConfig: FILTER_CONFIGS.curieFilterConfig,
},
{
field: 'modEntityId',
header: 'MOD Entity ID',
body: (rowData) => <IdTemplate id={rowData.modEntityId} />,
field: 'primaryExternalId',
header: 'Primary External ID',
body: (rowData) => <IdTemplate id={rowData.primaryExternalId} />,
sortable: true,
filterConfig: FILTER_CONFIGS.modentityidFilterConfig,
filterConfig: FILTER_CONFIGS.primaryexternalidFilterConfig,
},
{
field: 'modInternalId',
Expand Down Expand Up @@ -107,7 +107,7 @@ export const AffectedGenomicModelTable = () => {
filterConfig: FILTER_CONFIGS.taxonFilterConfig,
},
{
field: 'dataProvider.sourceOrganization.abbreviation',
field: 'dataProvider.abbreviation',
header: 'Data Provider',
sortable: true,
filterConfig: FILTER_CONFIGS.agmDataProviderFilterConfig,
Expand Down
Loading

0 comments on commit 423bed7

Please sign in to comment.