Python gateway & webclient delete improvements#4266
Conversation
There was a problem hiding this comment.
I can't see any direct use of this method, copyImageToDataset(). Should it be removed?
|
Closing temporarily |
|
|
|
Code changes seem to make sense on overview. Haven't tested functionality yet. |
|
@sbesson the one thing I haven't done is mark |
|
A vote for |
|
@joshmoore thanks. Clearly my |
|
In looking through the gateway I noticed that: |
|
Functionality of removing annotations in webclient works fine. |
|
If they will be removed soon, deprecating sooner would be appropriate.
|
|
@joshmoore I don't think that anything in the webclient can be considered an API (not like webgateway) - We don't deprecate or document changes to methods in webclient, we just go ahead and edit. |
|
Longer-term we should really re-evaluate that since it increases the burden on consumers. Or at least it needs to be made completely obvious, e.g. |
|
The |
|
@joshmoore @sbesson I would like to move all the "api" urls and view methods that power the jsTree etc into a new /url/ app, and add similar methods for other parts of the app as we go. Then mark everything remaining in webclient as non-public. |
|
I hadn't realised that the |
|
Given the state of https://ci.openmicroscopy.org/view/DEV/job/OMERO-DEV-merge-integration-python/ and https://ci.openmicroscopy.org/view/DEV/job/OMERO-DEV-merge-integration-Python27/, merging this. Let's have the webclient discussion separately. @will-moore: can you provide a listing of what is meant to be public and private within webclient? |
Python gateway & webclient delete improvements
|
Currently @dpwrussell added a number of 'api' urls, that map to corresponding functions in views.py and tree.py that load the data via projection queries and marshal it to json: These make a good starting point for public methods in webclient. More of what the webclient needs should be moved to this architecture and made public, probably in a new 'api' Django app. |
This PR addresses the various items in https://trello.com/c/WMnOBpC6/31-improve-deleteobjects-deprecate-deleteobjectdirect-inpython-gateway both RFEs and deprecation of
deleteObjectDirect.Tests, both
OmeroPyandOmeroWebshould pass.Web functionality to be tested is that which deletes and unlinks P/D/I, S/P and Annotations. I.e quite wide-ranging, but concentrating on unlinking and deleting all types of annotations would be useful.