Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork3.8k
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
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
fcollonval commentedMar 15, 2023
hbcarlos commentedMar 15, 2023
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.
fcollonval commentedMar 16, 2023
@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 tosuggest 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 withexpected as reference.
Waiting for localhost:8888 Cell memory leaksCreate a code cellMemory change: +150 kBLeak detected: YesLeaking objects:
Leaking collections: Create a markdown cellMemory change: -121 kBLeak detected: NoLeaking objects:
Leaking collections: Create a raw cellMemory change: -175 kBLeak detected: NoLeaking objects:
Leaking collections: File editor memory leaksCreate a fileMemory change: -89.5 kBLeak detected: NoLeaking objects:
Notebook memory leaksCreate a notebookMemory change: +35.9 kBLeak detected: YesLeaking objects:
2 passing (7m) |
Backport PR#14182 on branch 3.6.x (Fix save as in collaborative mode)

Uh oh!
There was an error while loading.Please reload this page.
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