Skip to content

Commit

Permalink
Merge pull request #33 from EGA-archive/urgent-fix
Browse files Browse the repository at this point in the history
Fix for the similarity queries using ontology filers
  • Loading branch information
costero-e authored Jan 13, 2025
2 parents 928e368 + 448b195 commit 68abde0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion beacon/conf/api_version.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
api_version: v2.0-88f079b
api_version: v2.0-928e368
2 changes: 1 addition & 1 deletion beacon/connections/mongo/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ def apply_filters(self, query: dict, filters: List[dict], collection: str, query
partial_query = apply_ontology_filter(self, partial_query, filter, collection, request_parameters, dataset)
elif "similarity" in filter or "includeDescendantTerms" in filter or re.match(CURIE_REGEX, filter["id"]) and filter["id"].isupper():
filter = OntologyFilter(**filter)# pragma: no cover
partial_query = apply_ontology_filter(self, partial_query, filter, collection, request_parameters)# pragma: no cover
partial_query = apply_ontology_filter(self, partial_query, filter, collection, request_parameters, dataset)# pragma: no cover
else:
filter = CustomFilter(**filter)
partial_query = apply_custom_filter(self, partial_query, filter, collection, dataset)
Expand Down

0 comments on commit 68abde0

Please sign in to comment.