Add get subcommand to CLI obj command#4071
Conversation
Opening a can of worms! Here's an example of the output I've been printing for annotations in the |
|
I am tempted here to drop support for: within this PR and asscope and, later, add as a separate command? |
|
That's probably the least contentious option. |
|
Closing this temporarily while I'm away as it needs slight revision and I don't want it to interfere with any other work. |
|
The originally included usage of for listing the fields of an object has been dropped from this PR. We whould introduce a |
|
As discussed elsewhere: a group owner or admin should be able to modify
Thinking about breaking changes, my gut feeling is that we should steer toward |
|
There may be some confusion here as to what the Looking at the Trello card However, if we want a fuller |
|
|
Bear in mind there are no changes to the A proposal: gets the named field whether it is an individual value or a list. A list is returned as a CSV. get the element at Y in the list. If not a list or no element exists then returns an error. With the later addition of Later additions could then be |
|
Agreed. And if we need, we can SUPPRESS |
|
I'm now minded to leave this PR as it stands. It gets basic fields that return values and throws an error otherwise. Looking at some of the lists they are lists of named values and are dealt with via the map commands. I would suggest that any further work on dealing with lists that do not represent map annotations is scoped with examples of which fields are applicable and how values should be returned. |
|
Works for me. When/if we go for the more complicated version, one further improvement might be to make https://ci.openmicroscopy.org/view/Failing/job/OMERO-5.1-merge-integration-python/545/testReport/ passed for these tests. Merging. |
Add get subcommand to CLI obj command
|
Yes, being proper subcommands would help. When I briefly had |
See https://trello.com/c/5M0gWeCw/43-omero-obj-new-commands This addresses just the first bullet point.
should return the value of a simple field, name, description, etc. More complex fields should cause an error.
The one modified test, which checks one use of
getshould pass.--rebased-to #4141