Skip to content
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

Where/how to set collaborative_document_save_delay #47

Open
ellisonbg opened this issue Nov 7, 2022 · 10 comments · Fixed by jupyterlab/jupyterlab#13392
Open

Where/how to set collaborative_document_save_delay #47

ellisonbg opened this issue Nov 7, 2022 · 10 comments · Fixed by jupyterlab/jupyterlab#13392

Comments

@ellisonbg
Copy link

Trying to figure out how to set the collaborative_document_save_delay property, but don't see how to do that. I would expect it to be a configurable trait, but haven't found that anywhere. Is there information about how to set this, or can you point to the relevant code that defines this trait?

@welcome
Copy link

welcome bot commented Nov 7, 2022

Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗

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! 👋

Welcome to the Jupyter community! 🎉

@davidbrochart
Copy link
Collaborator

It has to be added somewhere here and there.
cc @hbcarlos who introduced this property.

@ellisonbg
Copy link
Author

ellisonbg commented Nov 8, 2022 via email

@ellisonbg
Copy link
Author

ellisonbg commented Nov 8, 2022 via email

@ellisonbg
Copy link
Author

Context: we are trying to debug some performance issues with RTC and are trying to understand if it is related to saving to disk. To help debug that, we would like to change the saving frequency or turn it off.

@davidbrochart
Copy link
Collaborator

Not sure I follow. Is this not implemented currently? If not, what is the current behavior (often are documents written to disk?)

It was hard-coded to 1 second before this PR. The PR was released as 0.2.0, so that it doesn't affect JupyterLab's 3.6 or 4.

@hbcarlos
Copy link
Member

hbcarlos commented Nov 8, 2022

Hi @ellisonbg. I added collaborative_document_save_delay to control the saving delay because it was necessary for the RTC UI tests (this PR: jupyterlab/jupyterlab#13240).

As @davidbrochart said, we released jupyter_server_ydoc v0.2.0 with this new configuration, and JupyterLab is still using v0.1, so it should not be a problem.

I'm adding this configuration as a trait in JupyterLab here jupyterlab/jupyterlab@560e304, but It is not merged yet.

@davidbrochart
Copy link
Collaborator

@hbcarlos can you point to the PR for this change?
I cannot find it and I wanted to comment on it.

@hbcarlos
Copy link
Member

hbcarlos commented Nov 8, 2022

@davidbrochart is this one: jupyterlab/jupyterlab#13240

And the docstring of the trait is already fixed.

@davidbrochart
Copy link
Collaborator

Thanks, I just left minor comments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants