-
Notifications
You must be signed in to change notification settings - Fork 14
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
Add logic to retrieve omero.qa.feedback property server-side #327
Conversation
If not null, generate feedback URLs and bind them to the TOKEN_URL and PROCESSING_URL lookup names
src/main/java/org/openmicroscopy/shoola/env/data/DataServicesFactory.java
Outdated
Show resolved
Hide resolved
@sbesson I think I figured out where the problem is coming from when switching user. |
I have a local server with my omero-common changes deployed and several test servers without the change |
scenario 3: set |
scenario 4 works as expected too |
src/main/java/org/openmicroscopy/shoola/env/data/DataServicesFactory.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes look good. I will do a test for the switch user situation but the problem is not related to the proposed changes.
Companion to ome/omero-common#38
Similarly to the logic retrieving the maximum plane width/height from the server, this adds another post-connection step to retrieve the value of the server-side
omero.qa.feedback
property. If defined, it sets theLookupNames.TOKEN_URL
andLookupNames.PROCESSING_URL
entries which are used for sending feedback (comments and failed uploads) to the QA server. If the calls fails e.g. with aSecurityViolation
, the current behavior is unchanged and the default values set incontainer.xml
should be used.Testing should happen in different client/server scenarios:
container.xml
should be used and the feedback should be sent to the OME QA systemcontainer.xml
should be used and the feedback should be sent to the OME QA systemomero.qa.feedback
server-side: the ConfigService should return the default value, the log file should indicate thatUsing URL defined server-side for feedback: http://qa.openmicroscopy.org.uk
and the feedback should be sent to the OME QA systemomero.qa.feedback
set server-side tohttp://qa.openmicroscopy.org.uk
: the log file should indicate thatUsing URL defined server-side for feedback: http://qa.openmicroscopy.org.uk
and the feedback should be sent to the OME QA systemomero.qa.feedback
set server-side to an alternate QA system: the log file should indicate thatUsing URL defined server-side for feedback: <alternate QA endpoint>
and the feedback should be sent to the alternate QA systemFor each configuration, ideally both comments (Help > Send Feedback) and failed uploads should be tested.