fractal-analytics-platform / fractal-web

Web client for Fractal
https://fractal-analytics-platform.github.io/fractal-web/
BSD 3-Clause "New" or "Revised" License
6 stars 0 forks source link

Introduce feature for PATCH-ing settings of a whole usergroup at once #602

Open tcompa opened 3 days ago

tcompa commented 3 days ago

(this will be included in fractal-server >=2.7.0a6)

We already expose the PATCH /auth/users/{user_id}/settings/ endpoint, in the webclient page http://localhost:5173/v2/admin/users/{user_id}/edit.

The new endpoint PATCH /auth/group/{user_group_id}/user-settings/ will accept the same kind of request body, and it will apply the PATCH to all users of a that user group.

I think the right place for including this UI is http://localhost:5173/v2/admin/groups/{user_group_id}/edit. We can re-use the same edit-settings form of http://localhost:5173/v2/admin/users/{user_id}/edit, but let's add a small informative message on top of it (on the line of: "Warning: this PATCH will be applied to all the {N} users of this user group"

Additional detail: the new endpoint has a response without body.

tcompa commented 1 day ago

2.7.0a6 now available