Skip to content

Commit

Permalink
Merge pull request #589 from sennetconsortium/maxsibilla/issue-574
Browse files Browse the repository at this point in the history
Updating UBKG link used
  • Loading branch information
maxsibilla authored Nov 20, 2024
2 parents 2dbf07c + 50edf55 commit 997a210
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/instance/app.cfg.example
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ UBKG_ENDPOINT_VALUESET = 'valueset?parent_sab=SENNET&parent_code={code}&child_sa
UBKG_CODES = '{"specimen_categories":"C020076", "organ_types":{"code": "C000008", "key": "organs", "endpoint": "organs?application_context=SENNET"}, "entities": "C000012", "source_types":"C050020"}'

# UBKG Integration Configs for Rule Chain
UBKG_INTEGRATION_ENDPOINT = 'http://gateway.dev.hubmapconsortium.org:8181/'
APPLICATION_CONTEXT = 'SENNET'

# URI from which to load the assay classifier rules.
Expand Down
2 changes: 1 addition & 1 deletion src/lib/rule_chain.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ def apply_source_type_transformations(source_type: str, rule_value_set: dict) ->

def get_data_from_ubkg(ubkg_code: str) -> dict:
query = urllib.parse.urlencode({"application_context": current_app.config['APPLICATION_CONTEXT']})
ubkg_api_url = f"{current_app.config['UBKG_INTEGRATION_ENDPOINT']}assayclasses/{ubkg_code}?{query}"
ubkg_api_url = f"{current_app.config['UBKG_SERVER']}assayclasses/{ubkg_code}?{query}"
req = urllib.request.Request(ubkg_api_url)
try:
with urllib.request.urlopen(req) as response:
Expand Down

0 comments on commit 997a210

Please sign in to comment.