Warning: Can't synchronize with repository "(default)" (/home/git/ome.git does not appear to be a Git repository.). Look in the Trac log for more information.
Notice: In order to edit this ticket you need to be either: a Product Owner, The owner or the reporter of the ticket, or, in case of a Task not yet assigned, a team_member"

Task #13049 (new)

Opened 8 years ago

Last modified 8 years ago

SaveArray without Validation Exception

Reported by: wmoore Owned by: jamoore
Priority: major Milestone: Unscheduled
Component: Services Version: n.a.
Keywords: n.a. Cc: java@…
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: n.a.
Sprint: n.a.


When a user copies and pastes (or drag and drops) a number of images into a Dataset, we want to batch-create a bunch of links without throwing an Exception if one or more of the links already exists. The webclient currently tries to remove duplicates (if they are loaded in tree) but in case of pagination or other async, we may not remove all duplicates. Therefore, the saveArray() is in a try/except where we handle the Validation Exception by trying to save every link individually.

It would be nice if there was a way to save multiple links like updateService.saveArray() that didn't fail for all the valid links when a single duplicate (non-valid) link exists.

Also, in the same PR, when we want to unlink a bunch of P/D/I etc we have to first load the links, then Delete these (which is async). I would be nice to have a single call that can simply unlink e.g. a bunch of Images from a Dataset (links owned by userId) without needing to load the links first.

Change History (3)

comment:1 Changed 8 years ago by jamoore

  • Milestone changed from OMERO-5.2.0 to OMERO-5.2.1

comment:2 Changed 8 years ago by jburel

  • Milestone changed from OMERO-5.2.1 to OMERO-5.2.2

Milestone OMERO-5.2.1 deleted

comment:3 Changed 8 years ago by jburel

  • Milestone changed from OMERO-5.2.2 to OMERO-5.2.1

Milestone OMERO-5.2.2 deleted

Note: See TracTickets for help on using tickets. You may also have a look at Agilo extensions to the ticket.

1.3.13-PRO © 2008-2011 Agilo Software all rights reserved (this page was served in: 0.62508 sec.)

We're Hiring!