Get ROI count#4550
Conversation
|
Tested using OMERO.insight-5.3.0-m1-153-53a0751-ice35-b82-mac regions-omero.docker.openmicroscopy.org DB: user-14 Multiselected 16 of 18 existing ROIs on image - added to newly created folder - count correct. On logging back in I could see the second ROI folder had been created and the ROIs added despite the error. I tried to delete the first folder to free up some ROIs for retesting and received the same error message as below. This time the error window closed and Insight crashed. Reproducible on another image with both existing and newly created ROIs. Log entry shows repeated error: Error message: |
|
Another issue seen on testing. Created a number of new ROIs on an image and all of the previously created ROIs remained selected despite clicking on toolbar and creation of new ROIs - see screenshot. |
f4e9284 to
bbb2e31
Compare
bbb2e31 to
8b0f2cb
Compare
|
Tested with OMERO.insight-5.3.0-m1-229-2b1e3eb-ice35-b86-win Win 8.1 regions-omero.docker.openmicroscopy.org DB: user-14
The counts are correct for existing ROIs on selecting image in data tree - both in Right Hand Pane General tab of main viewer and in General tab of rendering settings pane in Full Viewer.
Not occurring any more - no problem creating new folder with multi-selected ROIs
Not occurring any more - behaves as expected. |
|
Review: Only last two commits; check that the ROI count (right hand side metadata panel) is updated when ROIs are created or deleted (Note: if single ROIs are deleted they are actually just removed from the view, the real deletion happens in that case after clicking on the "save" button, that's when the ROI count gets updated in these cases). |
|
Tested using OMERO.insight-5.3.0-m1-248-0ddee08-ice35-b90-mac regions-omero.docker.openmicroscopy.org DB: user-14 Adding ROIs to folder gives correct number in Folder title. |
|
Thanks @gusferguson . This PR might also be worth rebasing to develop, as it's also a problem in 5.2.2, and it doesn't contain any 'regions' branch specific things. Your thougths @jburel ? |


At the moment Insight loads all ROIs and counts them on the client side for showing the number of ROIs in the right hand side meta data panel. This PR adds a method for directly getting the number of ROIs via an HQL query.
Test: Check some images with ROIs, make sure the ROI count (right hand side metadata panel) is correct.
(based on #4549 to avoid merge conflicts)