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

Change Autosave Delay #160

Open
G33kDude opened this issue Sep 10, 2021 · 1 comment
Open

Change Autosave Delay #160

G33kDude opened this issue Sep 10, 2021 · 1 comment

Comments

@G33kDude
Copy link

The default autosave delay is very aggressive and results in far too many intermediate versions being generated in the NextCloud versions manager. Is there a way to change the autosave delay?

I've tried setting window.DRAWIO_CONFIG = {"autosaveDelay": 60000} in the PreConfig.js of my locally hosted Diagrams.net instance, but the file still auto-saves as often as before.

Is that delay modifiable at all? Or if there is no configurable delay, is there a rational place to introduce it? I'm more than glad to go in and modify sources, I'm just not familiar enough with the code base to identify what's necessary to change and where.

Thanks!

@jensb
Copy link

jensb commented Dec 11, 2022

This is still an issue on Nextcloud 24 with the current draw.io plugin.
Can we have maybe both? The Nextcloud text editor also saves after just about every second keystroke (to enable simultaneous collaborative editing), but still doesn't generate a new version on every autosave.
How do they do this? Maybe draw.io can do the same? Still autosave every change, but create a new version only after substantial changes or a delay, e.g. after 10 object changes or 10 minutes?
Or, alternatively, autosave every change, but only keep manually saved states as versions?

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

No branches or pull requests

2 participants