Skip to content

Commit

Permalink
Merge pull request #885 from hubmapconsortium/karlburke/AssayTypeCleanup
Browse files Browse the repository at this point in the history
Initial commit to clean up after Assay Type deprecations.
  • Loading branch information
yuanzhou authored Oct 3, 2024
2 parents c4a74c7 + ac51d2a commit decdc48
Show file tree
Hide file tree
Showing 9 changed files with 4 additions and 1,275 deletions.
2 changes: 1 addition & 1 deletion search-api-spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ components:
- TR
- UR
- UT
description: "Organ code specifier, only set if sample_category == organ. Valid values found in: [organ types](https://github.com/hubmapconsortium/search-api/blob/main/src/search-schema/data/definitions/enums/organ_types.yaml)"
description: "Organ code specifier, only set if sample_category == organ. Valid values found using [the Ontology API](https://ontology.api.hubmapconsortium.org/organs?application_context=HUBMAP)"
direct_ancestor_uuid:
type: string
writeOnly: true
Expand Down
196 changes: 0 additions & 196 deletions src/libs/assay_type.py

This file was deleted.

51 changes: 0 additions & 51 deletions src/libs/assay_type_schema.yml

This file was deleted.

59 changes: 0 additions & 59 deletions src/libs/hubmap_endpoints.py

This file was deleted.

16 changes: 0 additions & 16 deletions src/libs/test.sh

This file was deleted.

8 changes: 2 additions & 6 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
from yaml import safe_load

sys.path.append("search-adaptor/src")
import libs.hubmap_endpoints
search_adaptor_module = importlib.import_module("app", "search-adaptor/src")

config = {}
Expand Down Expand Up @@ -39,12 +38,9 @@

translator_module = importlib.import_module("hubmap_translator")

sys.path.append("libs")

hubmap_blueprint = libs.hubmap_endpoints.hubmap_blueprint

# This `app` will be imported by wsgi.py when deployed with uWSGI server
app = search_adaptor_module.SearchAPI(config, translator_module, hubmap_blueprint).app
app = search_adaptor_module.SearchAPI( config=config
, translator_module=translator_module).app

# For local standalone (non-docker) development/testing
if __name__ == "__main__":
Expand Down
Loading

0 comments on commit decdc48

Please sign in to comment.