Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Even more of paranoia: adhoc traversal of girder and report prefix fo…
…r empty items Following diff had to be applied in addition to not mess with credentials specification commit 3f23478 Author: Yaroslav Halchenko <[email protected]> Date: Wed Apr 21 18:08:17 2021 -0400 TEMP: just hardcode new address everywhere to authenticate without dances diff --git a/dandi/consts.py b/dandi/consts.py index 53f2287..65fa12d 100644 --- a/dandi/consts.py +++ b/dandi/consts.py @@ -105,7 +105,7 @@ known_instances = { ), "dandi": dandi_instance( 0, - "https://girder.dandiarchive.org", + "http://3.19.164.171", "https://gui.dandiarchive.org", "https://dandiarchive.org", None, # publish. is gone, superseded by API which did not yet fully superseded the rest diff --git a/dandi/dandiarchive.py b/dandi/dandiarchive.py index f50280d..4942cce 100644 --- a/dandi/dandiarchive.py +++ b/dandi/dandiarchive.py @@ -95,7 +95,8 @@ def _map_to_girder(url): # This is a duplicate call from above but it is cheap, so decided to just redo # it here instead of passing all the variables + url server_type, server_url, asset_type, asset_id = parse_dandi_url(url) - server_url = known_instances[known_instances_rev[server_url.rstrip("/")]].girder + # server_url = known_instances[known_instances_rev[server_url.rstrip("/")]].girder + server_url = "http://3.19.164.171" client = girder.get_client(server_url, authenticate=False, progressbars=True) # TODO: RF if https://github.com/dandi/dandiarchive/issues/316 gets addressed # A hybrid UI case not yet adjusted for drafts API. diff --git a/dandi/girder.py b/dandi/girder.py index 4e7707b..25e6a1e 100644 --- a/dandi/girder.py +++ b/dandi/girder.py @@ -105,6 +105,8 @@ class GirderCli(gcl.GirderClient): def __init__(self, server_url, progressbars=False): self._server_url = server_url.rstrip("/") + # hardcode overload + self._server_url = "http://3.19.164.171" kw = {} if progressbars: kw["progressReporterCls"] = TQDMProgressReporter
- Loading branch information