-
Notifications
You must be signed in to change notification settings - Fork 0
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
PEPhubclient should correctly handle domains for registry paths #48
Comments
Currently, looper checks if the registry path can be parsed using ubiquerg and checks that a RegistryPath object from PEPHubclient can be created. If so, the path is then used to create a project via PepHubClient using that registry path. |
Right now, you can specify PEPhub domain using env vars. More info here: https://pep.databio.org/pephub/developer/pephubclient/#how-to-specify-url-for-pephub-instance |
I found the issue that I mentioned earlier about parsing registry path with url. At this point I see 2 solutions of this problem:
Any other way to solve this problem? |
Actually I think we should use there should just be a but this is also not correctly parsed.
the function is parsing as I think we want to add a third layer in there, which would be domain. Can you update that function to allow domains, like this?
|
also right now that function is silently failing, when it can't get anything. should it raise an exception? or return a dict with |
If I make a looper config file with a weird, bogus registry path like this:
It is actually ignoring the domain information, and just grabbing the
databio/pep_derived_attrs:default
section, and retrieving it from pephub, and running the pipeline correctly.This means we're not handling the domain right. We're only allowing pephub.databio.org, regardless of what you put in the domain. This means we can't allow people to use this with a registry other than ours.
Instead, we can default to the main interface, but we need to allow the user to specify an alternative domain. What if I want to try this on a local instance, using
localhost://registry_path
? This is not currently possible.Not sure if this is something to be fixed in looper or in PEPhubClient.
The text was updated successfully, but these errors were encountered: