-
-
Notifications
You must be signed in to change notification settings - Fork 31
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
Read-only mode not functioning as expected in jupyter collaboration #324
Comments
Thanks @Meriem-BenIsmail for looking into this. I think we need to clarify what we mean by read-only documents:
Thus we need a read-only mode where:
|
I do not agree. The design principle with most document editors is that when file is not writable user is still allowed to edit it and save to a different file. The reason why the warnings are not showing up in UI is because the collaborative model does not share the information about file being read-only with the frontend. |
That's fine in a non-collaborative mode, but in collaborative mode users can have different permissions. On user could have rights to modify a document and another user could only be allowed to view the document. Letting the UI modify the document for the latter, and preventing their changes to be applied to the shared document, will lead to a broken state, right? |
Does the collaborative mode as of today has a notion of different permissions? It would seem to me that if file is read-only for the jupyter-server user then it is read-only no matter which jupyter user is connecting to the server. |
Permissions are at the Jupyter server API level, and jupyter-collaboration uses WebSockets so it could use this information. But we are talking about different things here, filesystem permissions vs user permissions. |
I'm thinking that as soon as the user changes the document while navigating the history, this should create another fork of the (forked) document, but this time from the current state of the fork instead of from the head of the root document. In other words, we should keep on forking forks, and that corresponds to a new branch each time. This way we don't need the document to be read-only. |
When opening a shared notebook that has read-only permissions, the notebook does not behave as expected.
I was able to modify the notebook, and when I pressed
Ctrl + S
to save the changes, the modifications were saved instead of being restricted. Additionally, this action resulted in a 500 Internal Server Error.The expected behavior is that the notebook should be unchangeable when set to read-only, and any attempt to save changes should be prevented without causing errors.
The actual behavior of a read-only notebook in jupyter collaboration : with the RTC prefix
This is how it is without the RTC prefix
The text was updated successfully, but these errors were encountered: