Branch: refs/heads/XWIKI-2470
Home:
https://github.com/xwiki/xwiki-platform
Commit: 05750805ac2e7dcfa6486ee5482f0926a0a84823
https://github.com/xwiki/xwiki-platform/commit/05750805ac2e7dcfa6486ee5482f…
Author: Marius Dumitru Florea <marius(a)xwiki.com>
Date: 2025-10-20 (Mon, 20 Oct 2025)
Changed paths:
M
xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/web/SaveAction.java
M
xwiki-platform-core/xwiki-platform-realtime/xwiki-platform-realtime-test-pageobjects/src/main/java/org/xwiki/realtime/test/po/HistoryDropdown.java
M
xwiki-platform-core/xwiki-platform-realtime/xwiki-platform-realtime-test-pageobjects/src/main/java/org/xwiki/realtime/test/po/RealtimeEditToolbar.java
M
xwiki-platform-core/xwiki-platform-realtime/xwiki-platform-realtime-test-pageobjects/src/main/java/org/xwiki/realtime/test/po/VersionElement.java
M
xwiki-platform-core/xwiki-platform-realtime/xwiki-platform-realtime-webjar/src/main/webjar/saver.js
M
xwiki-platform-core/xwiki-platform-realtime/xwiki-platform-realtime-wysiwyg/xwiki-platform-realtime-wysiwyg-test/xwiki-platform-realtime-wysiwyg-test-docker/src/test/it/org/xwiki/realtime/wysiwyg/test/ui/RealtimeWYSIWYGEditorIT.java
M
xwiki-platform-core/xwiki-platform-web/xwiki-platform-web-war/src/main/webapp/resources/js/xwiki/actionbuttons/actionButtons.js
M
xwiki-platform-core/xwiki-platform-web/xwiki-platform-web-war/src/main/webapp/resources/js/xwiki/meta.js
Log Message:
-----------
XWIKI-2470: Improve saving to not save data that has not changed
* Return the new (latest) version even when we don't create a new revision because the
editor that sent the save request might have an outdated version number. This can happen
if two users save the same document state, either because they didn't modify the
document or because they made the same modifications.
* Update since version
* Fix RealtimeEditToolbar#waitForConcurrentEditingWarning() that was causing both the
existing #editFullScreen() test and the new #preventEmptyRevisions() test to flicker (we
need to wait for the fade-in / fade-out popover animation to end).
* Display the revision author, not modifier (last content updater), in the history
dropdown.
* The auto-saver should check if the new version is different from the current version.
* Extend the #preventEmptyRevisions() functional test to check what happens when both
users save the same document state.
* Simplify the version update handler in actionButtons.js
* Modify meta.js to not trigger the 'xwiki:document:changeVersion' event if the
version didn't change.
To unsubscribe from these emails, change your notification settings at
https://github.com/xwiki/xwiki-platform/settings/notifications