Skip to content

activities panel word break - #378

Merged
will-moore merged 1 commit into
ome:masterfrom
will-moore:activities_panel_word_break
Aug 2, 2022
Merged

activities panel word break#378
will-moore merged 1 commit into
ome:masterfrom
will-moore:activities_panel_word_break

Conversation

@will-moore

Copy link
Copy Markdown
Member

Fixes #377.

To test:

  • Need to run a script that has a very long message, with no spaces or even -.
  • E.g. rename an Image with a very long name (alpha-numeric and _ only). Then choose this image for Batch_Image_Export script
  • The Activities dialog shouldn't appear broken (see screenshots on Hidden download button in "Activities" #377).

Screenshot 2022-06-16 at 10 35 50

@will-moore will-moore changed the title Limit width of activities panel text, all break-word to wrap text activities panel word break Jun 16, 2022
@pwalczysko

pwalczysko commented Jun 17, 2022

Copy link
Copy Markdown
Member

Screenshot 2022-06-17 at 11 28 07

I do not seem to be able to run Batch_image_export script on merge-ci, user-3 Dataset https://merge-ci.openmicroscopy.org/web/webclient/?show=dataset-6473

Rerunning https://merge-ci.openmicroscopy.org/jenkins/job/OMERO-server/ - maybe it will help

@pwalczysko

Copy link
Copy Markdown
Member

Restart of the server did not help cc @sbesson

@sbesson

sbesson commented Jun 17, 2022

Copy link
Copy Markdown
Member

I suspect it's related to ome/openmicroscopy#6325 (comment). Should we exclude and rebuild to confirm?

@pwalczysko

pwalczysko commented Jun 17, 2022

Copy link
Copy Markdown
Member

I suspect it's related to ome/openmicroscopy#6325 (comment). Should we exclude and rebuild to confirm?

I have added --exclude to the description of ome/openmicroscopy#6325 (comment) and rerun the https://merge-ci.openmicroscopy.org/jenkins/job/OMERO-server/ but this did not help. Maybe another job needs to be rerun, which takes into account a new merge of PRs ?

Edit: added an Exclude label and rerunning the job. Maybe that will do it.

@sbesson

sbesson commented Jun 17, 2022

Copy link
Copy Markdown
Member

Correct, the builds need to rebuild the server without the PR first. I relaunched the suite of jobs from the OMERO distribution step

@pwalczysko

Copy link
Copy Markdown
Member

Thank you @sbesson , now the scripts work.

@pwalczysko

pwalczysko commented Jun 17, 2022

Copy link
Copy Markdown
Member

@will-moore

Batch image export script is failing on the long name itself. See below

Traceback (most recent call last):
  File "./script", line 625, in <module>
    run_script()
  File "./script", line 609, in run_script
    file_annotation, message = batch_image_export(conn, script_params)
  File "./script", line 451, in batch_image_export
    folder_name=folder_name)
  File "./script", line 257, in save_planes_for_image
    c, g_scale, zoom_percent, folder_name)
  File "./script", line 144, in save_plane
    plane.save(img_name)
  File "/home/omero/workspace/OMERO-server/.venv3/lib64/python3.6/site-packages/PIL/Image.py", line 2237, in save
    fp = builtins.open(filename, "w+b")
OSError: [Errno 36] File name too long: 'Batch_Image_Export/BFdownloads6for777BFPackage_xxxxxxxxxxxuuuuuuuuuuuuqqWWWWWWWblahblahjdksjafldjoujewoiruwoiegoiwhqajogvjasdfohaweohfohwofhowqhfouhqwofuhqwfghwpqhgouqwhgouhwqughquwhgopuqwhguqhwgouhqwughqwugfhiuqwhgouqhwgouhqwgouhqwughqwghaqiwhguqwghuiqghuiqwhiugfh.png_merged_z01_t01.jpg'

Batch_image_export script on merge-ci, user-3 Dataset https://merge-ci.openmicroscopy.org/web/webclient/?show=dataset-6473

@will-moore

Copy link
Copy Markdown
Member Author

Test with this image is working: https://merge-ci.openmicroscopy.org/web/webclient/?show=image-242242 (user-3)
Screenshot 2022-08-01 at 23 19 59

@pwalczysko

Copy link
Copy Markdown
Member

Works as expected when another script (not the Batch Image Export) is used.
The error on Batch Image Export is coming from python, and is unrelated to the fix in this PR.

Ready to merge fmpov.

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.

Hidden download button in "Activities"

3 participants