Closed sbesson closed 4 years ago
In addition to the manual testing above, I suspect this deprecation should allow https://merge-ci.openmicroscopy.org/jenkins/job/OMERO-test-integration/ to properly install and test the recent omero-cli-duplicate
improvements
Testing omero-py
alone I don't see a deprecation warning with:
$ OMERO_DEV_PLUGINS=true venv/bin/omero duplicate Dataset:232
Using session for will@localhost:4064. Idle timeout: 10 min. Current group: Lab Data
omero.cmd.Duplicate Dataset:232 ok
Ah. My changes might only apply in the case of a detailed report. Does $ OMERO_DEV_PLUGINS=true venv/bin/omero duplicate Dataset:232 --report
display the warning?
Yes:
$ OMERO_DEV_PLUGINS=true venv/bin/omero duplicate Dataset:232 --report
Using session for will@localhost:4064. Idle timeout: 10 min. Current group: Lab Data
omero.cmd.Duplicate Dataset:232 ok
Steps: 8
Elapsed time: 0.038 secs.
Flags: []
This plugin is deprecated as of OMERO 5.8.0. Use the plugin available from https://pypi.org/project/omero-cli-duplicate/ instead.
Duplicates
Dataset:1155
With the plugin installed, duplicate works without warning message. 👍
Cheers. Let me push another commit so that the warning message is displays on every invocation of the command
Works for me now, testing locally...
$ OMERO_DEV_PLUGINS=true venv/bin/omero duplicate Dataset:232
This plugin is deprecated as of OMERO.py 5.8.0. Use the plugin available from https://pypi.org/project/omero-cli-duplicate/ instead.
Previous session expired for will on localhost:4064
Server: [localhost:4064]
Username: [will]
Password:
Created session for will@localhost:4064. Idle timeout: 10 min. Current group: Lab Data
omero.cmd.Duplicate Dataset:232 ok
OMERO-test-integration is failing, maybe we need to decide about the pip install omero-cli-duplicate
for devspaces.
Probably largely depends on where we decide to run the integration test for the new omero-cli-duplicate
functionalities:
omero-cli-duplicate
and we can port the change made in merge-ciThe for-the-meantime-at-least decision seemed to be to have them in ome/openmicroscopy.
As work has restarted on the decoupled https://github.com/ome/omero-cli-duplicate/ plugin, this formally deprecates the legacy code in
omero-py
using the similar strategy as #124. The plugin can then safely be dropped in omero-py 6.This PR should be tested in two environment