[Libreoffice-bugs] [Bug 122530] FILESAVE: Auto save timing logic problem: can save too frequently

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Wed Sep 15 06:15:51 UTC 2021


https://bugs.documentfoundation.org/show_bug.cgi?id=122530

--- Comment #26 from Luke Kendall <luke.kendall at gmail.com> ---

(In reply to Mike Kaganski from comment #24)
> (In reply to Luke Kendall from comment #10)
> > Surely the logic of the auto-save should be, the time is measured from the
> > last time the document was saved, regardless of whether that was a manual
> > save or an auto save?  That time should be a per-document property.
> 
> Well, I would possibly agree that it *could* look reasonable to count per
> document.
> 
> However, the measure then should not be "measured from the last time the
> document was saved". This is flawed idea: the correct starting point should
> be, *given the spirit of this request*, the moment when the file got dirty
> (i.e., the first edit was made).
> 
> Think about it. If you count since file open, you would have the same
> unexpected result:
> 
> 0. Set interval to 30 minutes.
> 1. Open a file. Don't edit it yet.
> 2. Open other files, and edit them ...
> 3. After 29 minutes and 30 seconds, switch to the first document, and start
> editing it.
> 4. And suddenly, when you have just started, the 30 minutes timeout elapses,
> and it starts saving your 30-second edits.
> 
> Wrt comment 13: please file a documentation bug separately.

Since I didn't suggest you should count since file open, I see no reason to
consider the problems in such an idea. I agree it wouldn't help. So I'm glad I
didn't suggest it. :-)

My suggestion is to measure, per document, from the last save time, for that
document.

I also disagree that it should be measured from the first time the doc was
dirtied. I think it's far more useful to measure from the first time the doc
was dirtied *since the last save*. Probably that's what you meant?

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20210915/5e796575/attachment.htm>


More information about the Libreoffice-bugs mailing list