-
Notifications
You must be signed in to change notification settings - Fork 100
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
allow creation of thumbnails in all-groups context #5207
Conversation
Testing locally with my branch based on @aleksandra-tarkowska's work seems to work fine. |
After "Save to All" I am getting failures in getThumbnailSet() but not for getThumbnail(). Doesn't appear to be group-specific (same behaviour in default group vv other group, always using group -1). Need to investigate more... |
Hmmm. I tried switching |
So, after I do
I get an exception for
but this is fixed AFTER I get a single thumbnail for that image (pid2). |
The error at #5207 (comment) was using a combination of webclient and python API. I'll try and make a self-contained test. |
@mtbc do you expect https://github.com/openmicroscopy/openmicroscopy/pull/5158/files#diff-e4feecea30b2ee097639cbb7c9171fedR4438 to work now? |
Do you want me to write a Python integration test for this in a separate branch? |
@aleksandra-tarkowska
So I've re-opened my PR above #5192 and reverted your commit that used |
@will-moore feel free to open against #5158 so we will reduce number of dependent branches #5192 can be closed now |
try { | ||
applicationContext.publishMessage(new ContextMessage.Push(this, groupContext)); | ||
} catch (Throwable t) { | ||
log.error("could not publish context change push", t); |
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.
Should the exceptions on push
/pop
not be thrown?
Thank you for the offer! I'll start out by trying to reproduce this as part of the existing Java test class. |
Conflicting PR. Removed from build OMERO-DEV-merge-push#648. See the console output for more details.
|
--rebased-to #5234 |
Test created at #5235 |
To check: this PR may break thumbnails in shares. |
is share workflow not going to be removed in 5.3.x ? |
I don't know that it is. |
It cannot be removed in 5.3.x, it has just been deprecated. |
This PR indeed does seem to break thumbnails in Shares. Checked today on eel merge. |
@pwalczysko: The latest commit attempts to fix the shares issue. |
Checked that the PR is in, it seems to be. https://github.com/snoopycrimecop/openmicroscopy/tree/develop/merge/daily. There is no change in behaviour with respect to shares, the thumb problem persists. |
Which user is sharing with which user? |
user-4 and user-1, and vice versa. |
The other problem with plates persists as well. #5158 (comment) |
That would make sense because web in this branch is not using |
Both this PR's integration test and @will-moore's in #5235 use |
For some reason https://github.com/openmicroscopy/openmicroscopy/pull/5158/files#diff-e4feecea30b2ee097639cbb7c9171fedR4455 is not working, it might be worth to reproduce that method in the first place? |
I am afraid in both mentioned PRs web loads thumbnail one by one using https://github.com/aleksandra-tarkowska/openmicroscopy/blob/2a66a0c129dd499aae6a88f398057f024a1f8183/components/tools/OmeroPy/src/omero/gateway/__init__.py#L8002 |
@pwalczysko: Is this PR all good for you now? |
Yes, ready to merge. |
What this PR does
Adjusts the heart of the server's thumbnail generation so that in a
omero.group: -1
context thumbnails can still be generated, by grouping the pixels objects by group and creating their thumbnails in the corresponding group context.Testing this PR
Experiment with the thumbnail service to ensure that this PR does not cause any regressions.
Check if the new https://ci.openmicroscopy.org/job/OMERO-DEV-merge-integration-java/lastCompletedBuild/testngreports/integration/ThumbnailStoreTest/testGetThumbnailsMultipleGroups/ test passes and looks to relate to what this PR does.
Related reading
https://trello.com/c/bJqd3SkJ/39-getthumbnailbylongestsideset-doesn-t-accept-ctx