This issue has been created
 
 
XWiki Platform / cid:jira-generated-image-avatar-a690a91b-9368-4408-bd4b-59667c22c900 XWIKI-23141 Open

Fine-tune the realtime auto-save to prevent losing unsaved content

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-c2f6f165-048b-40dc-b826-5a2ab0a6653d Marius Dumitru Florea created this issue on 28/Apr/25 14:44
 
Summary: Fine-tune the realtime auto-save to prevent losing unsaved content
Issue Type: cid:jira-generated-image-avatar-a690a91b-9368-4408-bd4b-59667c22c900 Improvement
Affects Versions: 16.10.6, 17.3.0-rc-1
Assignee: Unassigned
Components: Realtime
Created: 28/Apr/25 14:44
Priority: cid:jira-generated-image-static-major-67951756-5cb1-46d3-abe2-fe16cf835952 Major
Reporter: Marius Dumitru Florea
Description:

Currently, the realtime editing auto-save is triggered once per minute, more or less. This means that the user can still lose unsaved changes if:

  • they are editing alone
  • they leave the editing session before the auto-save is triggered

We need to improve this to reduce the chances of losing unsaved content. Some ideas:

  • trigger auto-save more often, but we need to think about the number of document versions created; we could also make the auto-save delay configurable
  • trigger auto-save immediately when the editing area loses focus (if there are unsaved changes); this will cover the case when the user switches the browser tab or window
  • trigger auto-save when reconnecting to the realtime editing session (if there are unsaved changes); this should cover the case when the user is disconnected, due to some network issue, after making some change, but before the auto-save is triggered; of course, this won't cover the case when the user leaves the edit mode while disconnected, but the leave confirmation popup should warn the user at least