Adding a UI to let users share their servers to other users and groups #438
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello,
I've added the necessary code related to my issue #437.
It replaces the default link share UI in cases where Jupyter is running behind a Hub that allows the creation of shares. It enables users to:
The permissions needed (both in Hub and Lab) are:
"shares!user"
to manage users' shares."read:users:name"
to create shares by designating a user by their name (TODO: check if it's really necessary iflist:users
is already in scope?)."list:users"
(not mandatory) to list users for the search box."list:groups"
(not mandatory) to list groups for the search box."servers!user"
(not mandatory) to allow other users to start and stop the shared serverMy code does not:
list:users
norlist:groups
is in scope. I wanted to add an option to invite someone by typing their exact username, without having to search.This development has been made for my own internal purposes, but I think it could be useful to everyone. Comments and critiques are welcome!