Branch: refs/heads/RN-88 Home: https://github.com/xwiki-contrib/application-releasenotes Commit: e2d3ff5da979fe85b85dd2a3188ea2b5c98b9f0f https://github.com/xwiki-contrib/application-releasenotes/commit/e2d3ff5da97... Author: Vincent Massol <[email protected]> Date: 2026-09-01 (Tue, 01 Sep 2026) Changed paths: M application-releasenotes-test/application-releasenotes-test-docker/src/test/it/org/xwiki/releasenotes/test/ui/ReleaseNotesIT.java M application-releasenotes-ui/src/main/resources/ReleaseNotes/Code/EntryVelocityMacros.xml M application-releasenotes-ui/src/main/resources/ReleaseNotes/Code/Translations.xml A application-releasenotes-ui/src/test/java/org/xwiki/releasenotes/AddChangePageTest.java Log Message: ----------- RN-88: Two authors adding a change to the same release note at the same time are given the same entry page, and the second save overwrites the first * Create the page of a new entry, empty, before its author is redirected to the editor, so that the name is taken for that author only. Nothing else changes about the flow: the entry template is applied by the "edit" action the author lands on, which applies it to any page without content, existing or not. * Look at every page of the version space when computing the number of a new entry, and not only the saved changes, so that a page taken by an author who has not saved their entry yet counts as taken. A few numbers are tried, and not just one, to cover another author taking the next one in the meantime. * Compare the entry numbers as numbers, instead of asking the query to order the page names, which is a string sort: past Entry999 the highest page name was Entry999 rather than Entry1000, and the number 1000 was handed out repeatedly. * Add page tests for the numbering, for the number comparison past Entry999, and for two authors adding a change to the same release note at the same time. * Delete the entry page the contributors functional test now leaves behind, so that the test stays re-runnable against the same wiki. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> To unsubscribe from these emails, change your notification settings at https://github.com/xwiki-contrib/application-releasenotes/settings/notificat...