Task #8728 (closed)
Opened 7 years ago
Closed 7 years ago
canLink() for new Project etc?
| Reported by: | wmoore | Owned by: | wmoore |
|---|---|---|---|
| Priority: | critical | Milestone: | OMERO-4.4 |
| Component: | Services | Version: | n.a. |
| Keywords: | n.a. | Cc: | jburel |
| Resources: | n.a. | Referenced By: | n.a. |
| References: | n.a. | Remaining Time: | n.a. |
| Sprint: | 2012-05-22 (15) |
Description
What object should I call canLink() on to know if I can create a new Project?
If I'm creating a new Dataset under a Project, I can do project.canLink(), but creating a top-level object (or even an Orphan Dataset) I don't know what to query.
Change History (3)
comment:1 Changed 7 years ago by wmoore
comment:2 Changed 7 years ago by jmoore
- Owner changed from jmoore to wmoore
After the discussion today, my understanding is that the server functionality should not change. Passing off to Will.
comment:3 Changed 7 years ago by wmoore
- Resolution set to fixed
- Status changed from new to closed
Blitz Gateway canLink() returns isOwned(). https://github.com/will-moore/openmicroscopy/commit/5760ef3117671c17d391be1f5b44d9b1ee7a6cdf
Discussion summary: If you DID create a Project under another user, you would not see this in their data tree after refresh since it would be under yourself! So maybe it makes sense to have the current behavior?
BUT, it's going to be kinda strange if I create a Dataset under another user's Project, then I do 'Remove' and instead of seeing an orphan Dataset, the Dataset will disappear (only visible under myself).