Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
tcompa opened this issue Oct 17, 2024 · 1 comment · Fixed by #612
Closed

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

tcompa opened this issue Oct 17, 2024 · 1 comment · Fixed by #612

Comments

@tcompa
Copy link
Collaborator

tcompa commented Oct 17, 2024

(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
Copy link
Collaborator Author

tcompa commented Oct 18, 2024

2.7.0a6 now available

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging a pull request may close this issue.

1 participant