-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Fix save as in collaborative mode #14182
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
Conversation
|
Thanks for making a pull request to jupyterlab! |
fcollonval
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks @hbcarlos
|
Hey @fcollonval! I changed the dialog not to show the drive name and updated jupyter_collaboration to fix the issue. Grabacion.de.pantalla.2023-03-15.a.las.21.44.03.mov |
fcollonval
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
@meeseeksdev please backport to 3.6.x |
|
Owee, I'm MrMeeseeks, Look at me. There seem to be a conflict, please backport manually. Here are approximate instructions:
And apply the correct labels and milestones. Congratulations — you did some good work! Hopefully your backport PR will be tested by the continuous integration and merged soon! Remember to remove the If these instructions are inaccurate, feel free to suggest an improvement. |
Benchmark reportThe execution time (in milliseconds) are grouped by test file, test type and browser. The mean relative comparison is computed with 95% confidence. Results table
Changes are computed with expected as reference.
Waiting for localhost:8888 Cell memory leaksCreate a code cellMemory change: +150 kB Leak detected: YesLeaking objects:
Leaking collections: Create a markdown cellMemory change: -121 kB Leak detected: NoLeaking objects:
Leaking collections: Create a raw cellMemory change: -175 kB Leak detected: NoLeaking objects:
Leaking collections: File editor memory leaksCreate a fileMemory change: -89.5 kB Leak detected: NoLeaking objects:
Notebook memory leaksCreate a notebookMemory change: +35.9 kB Leak detected: YesLeaking objects:
2 passing (7m) |
Backport PR #14182 on branch 3.6.x (Fix save as in collaborative mode)

Fixes #14107
References
This PR was started in #14130 as a fix for lab v3.6. I am opening a new PR because we must also fix it in lab v4.
Code changes
After saving the document with a different name, we do not rename the document in memory. Instead, we close it and open the new one.
User-facing changes
In collaborative mode, we can not rename the document in memory. After a "Save As" action, we need to open the new document and close the old one. By closing the document and opening the new one, we are losing the state of the old document. Most editors do this, and, in my opinion, it is the most predictable behavior.
See #14130 for more context.
Backwards-incompatible changes
Screencast
Grabacion.de.pantalla.2023-03-13.a.las.14.59.33.mov