22204: Fix sharing dialog loading 22204-group-sharing
authorPeter Amstutz <peter.amstutz@curii.com>
Wed, 16 Oct 2024 21:43:17 +0000 (17:43 -0400)
committerPeter Amstutz <peter.amstutz@curii.com>
Wed, 16 Oct 2024 21:43:17 +0000 (17:43 -0400)
commitedbbee5413cf7b160e159ae030987c37330800ae
treee21dedacf4444bf3a4e87d2204da3c0f6ce77405
parent1d6290c69b9c340005b4ed00aef17ca33260a1c1
22204: Fix sharing dialog loading

* Split user/group queries so we don't ask for groups from the user
endpoint and vice versa
* Make each query conditional on whether any permissions to users or
groups were actually returned
* Send user/group queries in parallel
* Wrap the whole thing in try/finally to make sure it stops the
loading spinner if there's an error

Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz@curii.com>
services/workbench2/src/store/sharing-dialog/sharing-dialog-actions.ts