Create pds for others#5402
Conversation
|
|
Yes, this makes some sense. |
|
Bug1:
I guess the intention here was not to enable any icons in the Private group in the first place when filtering for others' data ? |
|
Bug2: In Read-annotate group, of which the light admin is a member.
Edit: I think the error is connected to the fact that light admin was trying to sever the original link by trying to drag and drop (for which they have no permissions, as they have no "Delete Data"). Note that the creation of the new link is successful, whilst the original link is not severed. |
|
@pwalczysko Those 2 bugs should be fixed (Delete link failure is silent now). |
|
TODO: remove linking logic from this PR (only handle creation of new obj). |
|
Created https://trello.com/c/lEZQ4DdA/104-light-crash-in-web-when-d-d for the "delete link when you have no rights" crash. This was a pre-existing (pre-this-PR, not pre-5.4.0) bug which we missed when fixing the light crashes in web. |
|
Retest of all functionalities went all as expected, light admin which can or cannot delete and can or cannot write (being a group member or not), as well as normal user were tested. Checked also the Orphaned images workflow, works fine. Checked links ownership and this is as expected as well. Ready to merge. |
|
Methods in |
|
@jburel TODOs to be done in this PR or a follow-up? |
|
Too late for 5.4.0-m3 |
|
Robot and web integration tests added. |
|
Conflicting PR. Removed from build OMERO-DEV-merge-push#767. See the console output for more details.
|
|
Thanks for adding the tests and marking the methods back. |
What this PR does
Allows users with
writeOwnedprivilege to create P/D/S belonging to other users:https://trello.com/c/0icOEIqM/12-rfe-enable-creation-of-p-d-s-on-behalf-of-others-in-web
Also fixes linking of objects in tree so that when user with "writeOwned" moves items in the tree, the new links created belong to the same owner as the parent object.
NB: Creation of P/D/S for other users when viewing "All Members" is not yet supported. To keep this PR manageable and within time constraints of m3, support for "All Members" should be in follow-up PR.
TODO:
Testing this PR
writeOwnedprivilege.writeOwnedshould have P/D/S creation disabled as before).writeOwnedcopies/cut/paste or drag/drops data in the tree, new links should belong to the same user as the Parent object. Can be tested by that user trying to cut links in a read-ann / read-only group. (NB: above, for new object creation, link belongs to same owner as the new data, not the parent)?cc @pwalczysko