Closed cjmyers closed 4 years ago
Check if we still need the option synbiohub_public_graph
In explorer.py, get the default_graph_uri from the arguments of the "/" endpoint request.
In search.py, if _from is empty, use the default_graph_uri instead of synbiohub_public_graph
To check that this works, perform a search logged out with synbiohub_public_graph set to empty.
@cjmyers See #59
The SBH admin page does not allow you to set this field to an empty string. Furthermore, setting this field, causes the query to not pickup public parts due to this code:
def send_query(query, endpoint): params = {'query': query}
Should also reconsider why we are setting the default-graph-uri, since the security concern of exposing private parts should be handled elsewhere now.