Skip to content

Commit

Permalink
OpenConceptLab/ocl_issues#720 | Source/Collection/Concept/Mapping | e…
Browse files Browse the repository at this point in the history
…xternal_id is indexed
  • Loading branch information
snyaggarwal committed Apr 19, 2021
1 parent 8b157d1 commit e56c494
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions core/collections/documents.py
Expand Up @@ -38,6 +38,7 @@ class Django:
'retired',
'experimental',
'locked_date',
'external_id',
]

@staticmethod
Expand Down
1 change: 1 addition & 0 deletions core/collections/models.py
Expand Up @@ -38,6 +38,7 @@ class Collection(ConceptContainerModel):
'custom_validation_schema': {'sortable': False, 'filterable': True, 'facet': True},
'canonical_url': {'sortable': True, 'filterable': True},
'experimental': {'sortable': False, 'filterable': True, 'facet': True},
'external_id': {'sortable': False, 'filterable': True, 'facet': False, 'exact': False},
}

class Meta:
Expand Down
1 change: 1 addition & 0 deletions core/concepts/documents.py
Expand Up @@ -34,6 +34,7 @@ class Django:
model = Concept
fields = [
'version',
'external_id',
]

@staticmethod
Expand Down
1 change: 1 addition & 0 deletions core/concepts/models.py
Expand Up @@ -143,6 +143,7 @@ class Meta:
'collection': {'sortable': False, 'filterable': True, 'facet': True},
'owner': {'sortable': True, 'filterable': True, 'facet': True, 'exact': True},
'owner_type': {'sortable': False, 'filterable': True, 'facet': True, 'exact': True},
'external_id': {'sortable': False, 'filterable': True, 'facet': False, 'exact': False},
}

@property
Expand Down
1 change: 1 addition & 0 deletions core/mappings/models.py
Expand Up @@ -91,6 +91,7 @@ class Meta:
'concept_owner_type': {'sortable': False, 'filterable': True, 'facet': True},
'from_concept_owner_type': {'sortable': False, 'filterable': True, 'facet': True},
'to_concept_owner_type': {'sortable': False, 'filterable': True, 'facet': True},
'external_id': {'sortable': False, 'filterable': True, 'facet': False, 'exact': False},
}

@property
Expand Down
1 change: 1 addition & 0 deletions core/sources/documents.py
Expand Up @@ -42,6 +42,7 @@ class Django:
'case_sensitive',
'compositional',
'version_needed',
'external_id',
]

@staticmethod
Expand Down
1 change: 1 addition & 0 deletions core/sources/models.py
Expand Up @@ -25,6 +25,7 @@ class Source(ConceptContainerModel):
'canonical_url': {'sortable': True, 'filterable': True},
'experimental': {'sortable': False, 'filterable': True, 'facet': True},
'hierarchy_meaning': {'sortable': False, 'filterable': True, 'facet': True},
'external_id': {'sortable': False, 'filterable': True, 'facet': False, 'exact': False},
}

class Meta:
Expand Down

0 comments on commit e56c494

Please sign in to comment.