-
Notifications
You must be signed in to change notification settings - Fork 25
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
automate switching to -i dandi-api
via dandiarchive.org/server-info
information
#541
Comments
These steps are or would be performed by |
Well,
rright... but in dandiarchive.py we setup regexes to decide between instances:
so it would be only for gui-beta-dandiarchive-org.netlify.app instance when we explicitly instruct to handle it as And URLs for both girder based and new dandi-api based instances are identical (e.g. https://gui.dandiarchive.org/#/dandiset/000003 and https://gui-beta-dandiarchive-org.netlify.app/#/dandiset/000003) now. So we can't automagically tell based on the full dandiset url alone either it is a girder or dandi-api instance :-/ That is why I wondered how we could automate such a switch. I thought to (ab)use redirector for this purpose as to consult on which type of instance it should be: if there is a redirector for the instance ( It indeed seems to just over-complicate situation though and we might just adjust regexes and the records in known_instances whenever migration happens for WDYT? |
|
what will happen in my example above whenever https://gui-beta-dandiarchive-org.netlify.app/#/dandiset/000003 would become https://gui.dandiarchive.org/#/dandiset/000003 and require interaction with dandi-api to get to that dandiset instead of girder? I just want to make sure that for that instance record |
@yarikoptic I've updated my PR to use |
Switch default dandi instance to dandi-api based on redirector
ATM that one reports
I think we should
change redirector it to remove entry for. that was a bad idea, replaced with"api"
since that service is long gone (and boostversion
to e.g.1.1.0
)dandi-cli
would refuse to interact with the archive if its version is below minimal one specified in thatserver-info
dandi-cli
so if there is a url for"api"
, we would usedandi-api
instance by default and not the girder one. (alternative - do that if there is no "girder")dandi-cli
0.14.0Upon migration
0.14.0
(assuming that is the one which it would be with default switch) and add"url"
for the"api"
and remove "girder", so released client would automagically switch to usedandi-api
instanceany flaw in above plan/logic @satra ?
The text was updated successfully, but these errors were encountered: