jupyterlab / jupyter-collaboration

A Jupyter Server Extension Providing Support for Y Documents
https://jupyterlab-realtime-collaboration.readthedocs.io/en/latest/
Other
157 stars 30 forks source link

Determine owner of the files in a given session #301

Closed Liototo closed 5 months ago

Liototo commented 5 months ago

Problem

Is there a way to quickly and reliably determine which of the users owns and shares the files?

Additional context

As part of a Bachelor semester project, I'm developing a simple role system for jupyter-collaboration and I wish to implement an "Owner" role for the user who created and shared the working environment. Is that possible?

welcome[bot] commented 5 months ago

Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! :hugs:
If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively. welcome You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! :wave:
Welcome to the Jupyter community! :tada:

davidbrochart commented 5 months ago

I don't know what you mean by "owner of a file", that doesn't really make sense in a collaborative session, right? But if your question is "who collaborates on a file", then the collaborators panel does that using the awareness, see here.

Liototo commented 5 months ago

Thank you for your response! I mean the user who creates and shares the session in the first place. My project is related to education and I'm trying to give specific capabilities to e.g. a teacher who shares a document for live coding demonstrations.

davidbrochart commented 5 months ago

It seems to me that what you need is managing permissions. Here are some pointers:

Liototo commented 5 months ago

I'll look into that then, thanks for your help!