Skip to content

Commit

Permalink
feat: perf improvements, ontology behaviour improvements & improved t…
Browse files Browse the repository at this point in the history
…emplates
  • Loading branch information
JackScanlon committed Jan 14, 2025
1 parent f06c28e commit 08199ed
Show file tree
Hide file tree
Showing 36 changed files with 1,323 additions and 514 deletions.
2 changes: 0 additions & 2 deletions CodeListLibrary_project/clinicalcode/api/views/Ontology.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ def get_ontology_detail(request, ontology_id):

@api_view(['GET'])
@permission_classes([IsAuthenticatedOrReadOnly])
@cache_page(60 * 60 * 2)
def get_ontology_node(request, node_id):
"""
Gets an Ontology node by the given request
Expand All @@ -86,7 +85,6 @@ def get_ontology_node(request, node_id):

@api_view(['GET'])
@permission_classes([IsAuthenticatedOrReadOnly])
@cache_page(60 * 60 * 2)
def get_ontology_nodes(request):
"""
Queries Ontology nodes by the given request
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def is_concept_published(concept_id, version_id):
version_id (int): the Concept's history_id
Returns:
bool: Reflects published status
bool: Reflects publish status
"""
concept_id = gen_utils.parse_int(concept_id, None)
Expand Down Expand Up @@ -95,7 +95,7 @@ def was_concept_ever_published(concept_id, version_id=None):
version_id (int|null): the Concept's history_id
Returns:
bool: Reflects all-time published status
bool: Reflects all-time publish status
"""
concept_id = gen_utils.parse_int(concept_id, None)
Expand Down
Loading

0 comments on commit 08199ed

Please sign in to comment.