-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Per-host configuration ignored for some hostnames #17664
Comments
So I added the following lines to galaxy/config/init.py#813: for host_key, host_val in per_host.items():
if per_host_option == 'support_url_by_host':
log.info(f"LOADING SUPPORT URL | host: {host}, host_key: {host_key}, host_val: {host_val}") With the following galaxy.yml config: support_url_by_host:
'dev.gvl.org.au': https://site.usegalaxy.org.au/help
'proteomics.dev.gvl.org.au': https://google.com And on dev.gvl.org.au this produces the following logs on request of proteomics.gvl.org.au:
Now, looking at the code in config/init.py, it obviously matches the first key that is a substring of So, when using this feature for subdomains, this won't work: support_url_by_host:
'dev.gvl.org.au': https://site.usegalaxy.org.au/help
'proteomics.dev.gvl.org.au': https://google.com ... but this will: support_url_by_host:
'proteomics.dev.gvl.org.au': https://google.com
'dev.gvl.org.au': https://site.usegalaxy.org.au/help I will link this from the PR so that others can see this issue. @jdavcs I'll leave it up to you whether this is a bug or a feature! |
Also note that galaxy/lib/galaxy/config/schemas/config_schema.yml Lines 2662 to 2670 in 43b6eb2
So this will not work for John's intended use case (which is also my intended use case!) until we fix that. I'll make a PR for this. |
So I updated the
... but the default tool panel is still loaded! I can set the default panel view globally as follows, and that works OK:
So for some reason it's only when |
@jdavcs should I open a separate issue for the above? |
@neoformit Sorry for the delay! I was able to reproduce. Working on it now, so no need for a separate issue. |
Amazing, thanks! This has been a blocker for me for quite a few months now. Also just had some trouble with |
This is now a blocker for the great single-cell subdomain unification as well! Can this please be fixed??? @natefoo <--- I think this is what is blocking you for this, right? |
For |
Relates to "per-host configuration" of Galaxy: #12328
Galaxy Version and/or server at which you observed the bug
Galaxy Version: 23.2.1.dev0 https://dev.gvl.org.au/
Commit: 8bda304
I am trying to set the
default_panel_view
as aby_host
parameter. However, when I set the following in galaxy.yml on Galaxy AU Dev it seems to have no effect. The tool panel loads the normal default:However, when I try to replicate the bug locally, the following seems to work fine i.e. I get
proteomics
as the default panel when I open the site on http://localhost/:So it seems like this feature works, but for some hostnames it stops working?
Additional context
I can confirm the same pattern with
support_url_by_host
(works locally, not on dev.gvl.org.au), so this seems to be a general issue with the_by_host
feature and not limited to thedefault_panel_view
param:WORKS:
default_tool_panel: proteomics
NOT WORKING:
default_tool_panel_by_host: dev.gvl.org.au
NOT WORKING:
default_tool_panel_by_host: proteomics.dev.gvl.org.au
NOT WORKING:
support_url_by_host: dev.gvl.org.au
NOT WORKING:
support_url_by_host: proteomics.dev.gvl.org.au
WORKS (local):
support_url_by_host: localhost/127.0.0.1
The text was updated successfully, but these errors were encountered: