Skip to content

Conversation

@sbesson
Copy link
Member

@sbesson sbesson commented Sep 30, 2025

Fixes #481

6e521bb adds a simple unit test capturing the regression. The test should pass with OMERO.py 5.20.0 but fail with OMERO.py 5.21.0 or 5.21.1.

1fd4c4d fixes the regression by overriding BlitzObjectWrapper.getExternalInfo() for DetailsWrapper

69841a5 adds some coverage for the API introduced in #453

The tests have been initially limited to the scope of ImageWrapper but happy to extend them to cover other wrappers if there is an authoritative list of the types we'd like to support.

Copy link
Member

@will-moore will-moore left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thx.

Copy link
Member

@knabar knabar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like a reasonable solution to the issue, with the old behavior of .getDetails().getExternalInfo() restored. It is a bit unfortunate that the return type of .getExternalInfo() on a non-details object is different, but since that call did not exist before at all, it's probably better to keep it the same to when it was introduced.

@sbesson sbesson merged commit 1aad8ff into ome:master Oct 3, 2025
14 checks passed
@sbesson sbesson deleted the gateway_getExternalInfo_regression branch October 6, 2025 08:03
@github-project-automation github-project-automation bot moved this from Todo to Done in OMERO.server 5.6.17 Jan 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

Python gateway: ExternalInfo getter regression

3 participants