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

Updating search api call to to url encode the assaytype as memcache … #179

Merged
merged 1 commit into from
Aug 30, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/schema/schema_triggers.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import os
import ast
import json
import urllib

import yaml
import logging
import datetime
Expand Down Expand Up @@ -2263,7 +2265,7 @@ def _get_assay_type_description(data_types):

for data_type in data_types:
# The assaytype endpoint in search-api is public accessible, no token needed
search_api_target_url = schema_manager.get_search_api_url() + f"/assaytype/{data_type}"
search_api_target_url = schema_manager.get_search_api_url() + f"/assaytype/{urllib.parse.quote(data_type)}"

# Function cache to improve performance
response = schema_manager.make_request_get(search_api_target_url)
Expand Down
Loading