thexerteproject / xerteonlinetoolkits

Xerte Online Toolkits
www.xerte.org.uk
Apache License 2.0
62 stars 60 forks source link

Lockfile time limit #1085

Open FayCross opened 2 years ago

FayCross commented 2 years ago

Should we have a time limit for how long the lockfiles are valid for? At the moment you can have an error message that a project is locked because someone may still be editing but the date is several years old! We find quite often that lock files aren't deleted for some reason when they should have been so this isn't particularly rare. I don't know whether lock files are only updated when the editor is opened or every time a save is done - if the latter then the time limit could be quite short (a couple of hours).

ronm123 commented 1 year ago

I just had an example of this again where I wanted to add to the release notes but was getting a lock file that Inge was editing. Although the date/time suggested that I could probably clear the lock file because Inge was unlikely to still be editing I still found myself checking with Inge first. I think part of the problem is that it's not easy to check for certain yourself if when you close the editor the lock file has indeed cleared. So I wonder if the project details pane could/should indicate lockfile status although perhaps only if a lockfile is still in place. I rarely get any reports that I'm showing as still working on a project so I'm still not sure what causes this to happen far more for some than others, but for those who do encounter this regularly perhaps closing the editor and then checking if the project pane indicates whether a lock file remains or not might help?