-
Notifications
You must be signed in to change notification settings - Fork 28
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 a URL Link as output of OMERO.script in Activities tab #233
Conversation
Functionally this works 👍 Things to consider:
|
Thanks @manics. I'll add the URL encoding/decoding where appropriate. Where do you think would be the best place to document it? |
Not sure on where we should document it, maybe wait for @will-moore to take a look? I'd hold off on any encoding/decoding until we have his input as it can be tricky to get right, it may be best to rely on the script developer. |
I think the place to add to docs is under https://github.com/ome/ome-documentation/blob/develop/omero/developers/scripts/style-guide.rst#script-outputs I'm not sure that we need to escape the URL. Scripts should be trusted etc. Do we need to support URLs with " etc? I guess it might improve usability for devs to handle this, but at least if this is documented then I don't see it as an essential feature. |
@will-moore, @manics docs PR opened here: ome/omero-documentation#2165, please let me know if there's anything missing. |
@will-moore, @manics code updated to remove the |
Works fine, thanks. LGTM. 👍 |
@will-moore anything else we need to add here before the PR is approved? |
I think it's good to merge. |
Is it worth scheduling a quick omero-web release including these changes? |
I'm all for it of course :) |
If we do it would be nice if we could get #232 in too so we can start linking to vizarr for testing (IDR/deployment#297) |
The changes here add additional output option ("URL") to the OMERO.script engine.
Example script utilizing new feature: https://gist.github.com/emilroz/e82d9b8f53f759c23235e2f38256d413
Expected result:
New "Open external link" button should open a new tab with the specified HTTP address.
We utilize this feature when the output of the script creates URLs to OMERO viewers/plugins (PathViewer, Figure, PathViewer Grid, etc.) with settings encoded in the URL based on user input.