Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Abandon YAML for indexing, using UBKG #50

Merged
merged 5 commits into from
Dec 14, 2023

Conversation

kburke
Copy link

@kburke kburke commented Dec 13, 2023

Remove YAML file usage support functions. Set HM Translator to access ontology-api.

src/app.py Outdated
@@ -1257,7 +1257,7 @@ def create_request_headers_for_auth(self, token):

def init_translator(self, token):
if self.ubkg_instance is None:
return self.translator_module.Translator(self.INDICES, self.APP_CLIENT_ID, self.APP_CLIENT_SECRET, token, self.ONTOLOGY_API_APP_SETTING)
return self.translator_module.Translator(self.INDICES, self.APP_CLIENT_ID, self.APP_CLIENT_SECRET, token)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kburke what I really meant is to replace this ONTOLOGY_API_APP_SETTING dict with a ONTOLOGY_API_URL and only use the application_context from constant.

SenNet introduced this ubkg_instance from the https://github.com/x-atlas-consortia/commons package, which is not a good design and will probably change down the road. So I don't want to broadcast this to HuBMAP.

@yuanzhou yuanzhou merged commit 0080907 into dev-integrate Dec 14, 2023
2 checks passed
@yuanzhou yuanzhou deleted the karlburke/removeYAMLuseUBKG branch December 19, 2023 20:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants