Task #13049 (new)
SaveArray without Validation Exception
|Reported by:||wmoore||Owned by:||jamoore|
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.