Conversation
|
Linked PR ome/omero-scripts#229 |
will-moore
left a comment
There was a problem hiding this comment.
Changes work fine with the updated script (and will also work without the updated script if you don't choose the Custom option). 👍
|
Thanks👍 |
|
Should be fine now |
|
Thanks @will-moore for the review. |
will-moore
left a comment
There was a problem hiding this comment.
Works fine and layout is fixed.
Good to merge, but need to be sure we don't release this before the corresponding script is released, as you get an error if you try to export the figure without the updated script.
Is there a mechanism to be defensive about this? Specifically, in a scenario where the new script parameters is not available server side, could the functionality be disabled in the UI or could the script execution fallback to supported parameters? |
|
@sbesson I don't know of a way to achieve that with regular scripts. I've just added functionality into OMERO.figure for the app to check the version of the script, but there's nothing like that for webclient. The error is However, you only get this error IF you choose the new 'Custom' option, so I think that this is quite limited exposure to this issue for most users. If users continue to export as before then this PR will continue to work with the old script (just tested):
|
|
Since omero-web/omeroweb/webclient/views.py Lines 4408 to 4411 in 2636e2f IScript.getParams could give the information either using the script version or by checking the input parameters?
|
|
Ah, yes - that's a good idea to handle it in the script UI rather than in the @Rdornier This works for me to only show "Custom" options if they're supported in the script... |
|
@will-moore Thanks for the code changes. It should check the script now |
| <input type="text" name="All_labels" value="" /> | ||
| </div> | ||
| {% endif %} | ||
| custom_labels_supported {{ custom_labels_supported }} |
There was a problem hiding this comment.
I think that line was just for debugging in my example - can be removed


Hello @knabar, @will-moore,
Small contribution on Split_View_Figure plugin, asked by one of our users. I added support to enter a custom label, which enable users to also not put any labels.
The corresponding python script will be updated accordingly in another PR