Skip to content
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

Define omero.qa.feedback as new visible server property #38

Merged
merged 1 commit into from
Dec 6, 2022

Conversation

sbesson
Copy link
Member

@sbesson sbesson commented Nov 23, 2022

Similarly to omero.upgrades.url, this property allows connected clients to access the server configuration and direct QA feedback accordingly.

At the moment, OMERO.web is the main client which defines a similar mechanism in https://github.com/ome/omero-web/blob/master/omeroweb/settings.py#L267

The name and default value of the server property are kept identical to the ones in the OMERO.web setting. Practically, a combined OMERO.server/OMERO.web deployment overriding the default value of omero.qa.feedback to use an alternate QA endpoint, there should be no configuration change and other clients can start retrieving the value of omero.qa.feedback and using it internally.

Initially, the primary target of this work will be OMERO.insight (a companion PR will be opened shortly). The importer is another client that could be updated in the mid-term to use the new configuration.

## QA configuration
#############################################
# Base URL to use when sending feedback (errors, comments)
omero.qa.feedback=http://qa.openmicroscopy.org.uk
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't read through the rest of the PR, but in terms of symmetry "omero.feedback.url" rings truer for me.

Copy link
Member

@jburel jburel Nov 23, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we have omero.upgrades.url so omero.feedback.url or omero.qa.url will make sense

Copy link
Member Author

@sbesson sbesson Nov 23, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting thoughts. I went for the minimal amount of changes/extra configuration but happy to update to use a different property name if we reach a consensus.

After a bit of research, a few comments on QA vs feedback:

  • OMERO.qa is the historical name of the OME application which was built to receive the feedback from clients and handle upgrade checks - see https://omero.readthedocs.io/en/stable/users/history.html#beta-4-1-october-2009 for the original announcement
  • code-wise, the omero_qa namespace is primarily used internally within the app
  • the only relevant usage in the OMERO stack is the internal omero.qa.feedback OMERO.web property
  • OMERO.web has some omero.web.feedback.* settings allow to turn on/off part of the feedback mechanism
  • if we decided to go for omero.feedback.url, I suspect we would eventually try to deprecate omero.qa.feedback and update the client to consume omero.feedback.url

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for that summary, @sbesson. The fact that it's also documentation in sysadmin/config.rst leads me to say let's not change it. (At least in terms of the naming, I feel somewhat vindicated by the environment variable in https://github.com/ome/omero-web/blob/3ae446b01d98493b109998c1dece8224337db54a/omeroweb/settings.py#L267 😄)

Similarly to omero.upgrades.url this allows connected clients to
consume the URL defined server-side and direct QA feedback accordingly
Copy link
Member

@jburel jburel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tested via omero-insight.
Works as expected

Copy link
Member

@pwalczysko pwalczysko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Read and makes sense to me, thank you - the naming discussion seems a bit inconclusive, but it seems that @jburel is happy with what is now in this PR, and thus so am I. I guess the eventual renaming would be done in other PRs/repos.

@jburel jburel merged commit 02ce566 into ome:master Dec 6, 2022
@sbesson sbesson deleted the qa_feedback branch August 21, 2023 08:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants