dev_4_4: Update upgrade check handling in OMERO.web#2175
dev_4_4: Update upgrade check handling in OMERO.web#2175joshmoore merged 3 commits intoome:dev_4_4from
Conversation
Python socket timeouts are specified in seconds as floating point. This commit sets the default timeout to a more reasonable 3 seconds, allows the specification of a floating point timeout value, removes the assumption that the timeout is specified in milliseconds and documents all of the aforementioned.
This commit adds configurability to the upgrade check URL via the
OMERO.web configuration mechanism. Upgrade checks in OMERO.web can now
be disabled by running:
bin/omero config set omero.web.upgrades_url ''
|
After a first glance, these things occur to me, but can be in follow-up PRs:
|
|
I have no strong opinion on any specific timeout so if we have an OMERO.insight timeout we'd like to mirror that's trivial. I had the same thoughts about addressing the milestone download URLs. This branch will start to fall apart really quickly if we start making string modifications unfortunately. There have been several commits fiddling with them. Right now this merges cleanly across all three branches and I'd be really loathed to loose that. Double usage in what sense? |
|
If I understand what you're asking about with respect to double usage this certainly works @joshmoore: diff --git a/components/tools/OmeroWeb/omeroweb/settings.py b/components/tools/OmeroWeb/omeroweb/settings.py
index 3005b73..5f6bdb7 100755
--- a/components/tools/OmeroWeb/omeroweb/settings.py
+++ b/components/tools/OmeroWeb/omeroweb/settings.py
@@ -227,7 +227,7 @@ CUSTOM_SETTINGS_MAPPINGS = {
"omero.web.webgateway_cache": ["WEBGATEWAY_CACHE", None, leave_none_unset],
"omero.web.session_engine": ["SESSION_ENGINE", DEFAULT_SESSION_ENGINE, check_session_engine],
"omero.web.debug": ["DEBUG", "false", parse_boolean],
- "omero.web.upgrades_url": ["UPGRADES_URL", "http://upgrade.openmicroscopy.org.uk/", str],
+ "omero.upgrades.url": ["UPGRADES_URL", "http://upgrade.openmicroscopy.org.uk/", str],
"omero.web.email_host": ["EMAIL_HOST", None, identity],
"omero.web.email_host_password": ["EMAIL_HOST_PASSWORD", None, identity],
"omero.web.email_host_user": ["EMAIL_HOST_USER", None, identity],Reading the default out of |
|
@chris-allan: 4858115 is exactly what I meant. Don't mind the hard-coding at all, but want to ease the burden on users if they've already set |
dev_4_4: Update upgrade check handling in OMERO.web
|
As an aside, the multiple merge of a single branch from |
|
ome/scc#158 points to perhaps this usage just makes |
This pull requests updates the base socket timeout semantics of the OMERO.py upgrade check and allows for upgrade check configurability in OMERO.web. OMERO tickets addressed include:
#12097(https://trac.openmicroscopy.org.uk/ome/ticket/12097)To test timeouts, you will need a merge build with the changes included. Running under
bin/omero shell:134.36.64.142is a University of Dundee firewalled IP address that can be used for internal or external testing. Default timeouts should be in the neighbourhood of 3 seconds. Example output:If needed the timeout can be adjusted and checked (example is a timeout of 10 seconds) by using:
OMERO.web upgrade check configurability can also be tested with a merge build. Running under
DJANGO_SETTINGS_MODULE=settings PYTHONPATH=$PYTHONPATH:lib/python/omeroweb bin/omero shell:Disabled upgrade checks should return instantly. Example output:
The source branch for this pull request has been based atop the
v.4.4.0tag so that it can be merged cleanly into:dev_4_4(dev_4_4: Update upgrade check handling in OMERO.web #2175)dev_5_0(dev_5_0: Update upgrade check handling in OMERO.web #2176)develop(develop: Update upgrade check handling in OMERO.web #2177)--rebased-from #2176