-
Notifications
You must be signed in to change notification settings - Fork 102
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
OMERO.web client settings override server client settings #6053
The head ref may contain hidden characters: "omero\u2022web\u2022client\u2022settings"
Conversation
Works fine and code looks good. When I set this locally:
then connected to eel and viewed e.g. "All Members" of a group that I wasn't an owner of, the Orphans folder didn't show up in the tree. Good to merge. |
NB: this is the first time that web code is starting to depend on omero.plugins code. As things currently stand, that's fine & permissible, but with the upcoming refactoring, we might want to consider if this is safe. (Also, when we decouple, will it lead to any issues) A simple fix for the import issue would be to refactor open_config elsewhere, but that carries with it various issues i.e. who knows about |
How about get rid of the config.xml in everything apart from the server where it's required, and have a new |
@manics: agreed. Something like that (perhaps keeping in mind the type of configuration that we will want for the vertx microservices) would be great. Obviously a question of how to get existing installations from where they are to that new system. |
Do it as part of the Python 3 decoupling/pypi work and make a complete break? If OMERO.web is pip-installable a relative |
Definitely agreed that that's the right time to do it, but under "a complete break" I wouldn't say we can ignore the short-term impact on users (how they upgrade) nor the long-term (as we move to microservices). |
Merging.
@manics : can I suggest an example repo where the overriding makes sense? Perhaps a public & non-public front-end set up like omero.lifesci. |
See #6086 for followup of the config discussion |
What this PR does
If
omero.client.*
properties are set in OMERO.web they override the correspondingomero.client.*
settings sent by the server.Testing this PR
omero.client.ui.tree.orphans.name
settingOrphaned images
/var
directory (not sure why)omero config set omero.client.ui.tree.orphans.name whatever
whatever
Note if you want to test the setting in the trello card
omero.client.ui.tree.orphans.enabled=false
you need to read the code to figure out in what situations it will hide the folder: https://github.com/openmicroscopy/openmicroscopy/blob/v5.5.0-rc3/components/tools/OmeroWeb/omeroweb/webclient/views.py#L667-L670I was going to add a test but I couldn't figure out how.... if anyone has a suggestion let me know (or we could skip adding a test)