Skip to content

Commit

Permalink
refact: remove restapi copies of utils moved to other locations
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlougheed committed Apr 9, 2024
1 parent 268e39e commit ec398ac
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 666 deletions.
3 changes: 2 additions & 1 deletion chord_metadata_service/chord/ingest/phenopackets.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@
from chord_metadata_service.chord.models import Project, ProjectJsonSchema, Dataset
from chord_metadata_service.phenopackets import models as pm
from chord_metadata_service.phenopackets.schemas import PHENOPACKET_SCHEMA, VRS_REF_REGISTRY
from chord_metadata_service.phenopackets.utils import time_element_to_years
from chord_metadata_service.patients.values import KaryotypicSex
from chord_metadata_service.restapi.schema_utils import patch_project_schemas
from chord_metadata_service.restapi.types import ExtensionSchemaDict
from chord_metadata_service.restapi.utils import remove_computed_properties, time_element_to_years
from chord_metadata_service.restapi.utils import remove_computed_properties

from .exceptions import IngestError
from .resources import ingest_resource
Expand Down
2 changes: 1 addition & 1 deletion chord_metadata_service/patients/migrations/0002_v2_8_0.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import chord_metadata_service.restapi.validators
import django.contrib.postgres.fields.jsonb
from django.db import migrations, models
from chord_metadata_service.restapi.utils import iso_duration_to_years
from chord_metadata_service.phenopackets.utils import iso_duration_to_years


def populate_age_numeric_and_age_unit(apps, schema_editor):
Expand Down
2 changes: 1 addition & 1 deletion chord_metadata_service/restapi/api_renderers.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
from rest_framework.renderers import JSONRenderer
from djangorestframework_camel_case.render import CamelCaseJSONRenderer

from chord_metadata_service.phenopackets.utils import parse_onset
from .jsonld_utils import dataset_to_jsonld
from .utils import parse_onset

OUTPUT_FORMAT_BENTO_SEARCH_RESULT = "bento_search_result"

Expand Down
Loading

0 comments on commit ec398ac

Please sign in to comment.