Branch: refs/heads/master Home: https://github.com/xwiki-contrib/application-releasenotes Commit: 7e9d899b4202800d1b1188a3e6a79e50ff85ccb1 https://github.com/xwiki-contrib/application-releasenotes/commit/7e9d899b420... Author: Vincent Massol <[email protected]> Date: 2026-09-09 (Wed, 09 Sep 2026) Changed paths: M application-releasenotes-api/pom.xml A application-releasenotes-api/src/main/java/org/xwiki/contrib/releasenotes/ChangeFilter.java M application-releasenotes-api/src/main/java/org/xwiki/contrib/releasenotes/ChangeManager.java A application-releasenotes-api/src/main/java/org/xwiki/contrib/releasenotes/ChangeQuery.java A application-releasenotes-api/src/main/java/org/xwiki/contrib/releasenotes/ChangeQueryParser.java A application-releasenotes-api/src/main/java/org/xwiki/contrib/releasenotes/ChangeSearchResult.java A application-releasenotes-api/src/main/java/org/xwiki/contrib/releasenotes/internal/ChangeSearcher.java M application-releasenotes-api/src/main/java/org/xwiki/contrib/releasenotes/internal/DefaultChangeManager.java A application-releasenotes-api/src/main/java/org/xwiki/contrib/releasenotes/internal/DefaultChangeQueryParser.java A application-releasenotes-api/src/main/java/org/xwiki/contrib/releasenotes/internal/EntryPageAllocator.java M application-releasenotes-api/src/main/java/org/xwiki/contrib/releasenotes/script/ReleaseNotesScriptService.java M application-releasenotes-api/src/main/resources/META-INF/components.txt A application-releasenotes-api/src/test/java/org/xwiki/contrib/releasenotes/ChangeFilterTest.java A application-releasenotes-api/src/test/java/org/xwiki/contrib/releasenotes/internal/ChangeSearcherTest.java M application-releasenotes-api/src/test/java/org/xwiki/contrib/releasenotes/internal/DefaultChangeManagerTest.java A application-releasenotes-api/src/test/java/org/xwiki/contrib/releasenotes/internal/DefaultChangeQueryParserTest.java M application-releasenotes-api/src/test/java/org/xwiki/contrib/releasenotes/script/ReleaseNotesScriptServiceTest.java M application-releasenotes-ui/pom.xml M application-releasenotes-ui/src/main/resources/ReleaseNotes/Code/Change/GetChangesMacro.xml M application-releasenotes-ui/src/main/resources/ReleaseNotes/Code/Change/ReleaseNotesChangesMacro.xml M application-releasenotes-ui/src/test/java/org/xwiki/contrib/releasenotes/GetChangesMacroPageTest.java M application-releasenotes-ui/src/test/java/org/xwiki/contrib/releasenotes/ReleaseNotesApiComponentList.java M application-releasenotes-ui/src/test/java/org/xwiki/contrib/releasenotes/ReleaseNotesChangesMacroPageTest.java M application-releasenotes-ui/src/test/java/org/xwiki/contrib/releasenotes/ReportPageTest.java Log Message: ----------- RN-114: Move the change search from Velocity to Java * Add ChangeQuery, ChangeFilter, ChangeSearchResult and ChangeQueryParser to the API module, together with ChangeManager#search, which builds and runs the query the getChanges macro used to assemble by hand: the operator prefixes, the audience and importance normalisation, the resolution of a version comparison against the extension version scheme and the limit+1 pagination. * Leave the getChanges wiki macro as a shim over $services.releasenotes.parseQuery and search. The generated query is unchanged: the same clauses in the same order, the same bound values, the same ordering, the same defaults, and the same page full names in the context variable, next to the same ${contextVariable}HasMore. GetChangesMacroPageTest, which asserts on the statement and on the bound values, keeps every one of its assertions; only its wiring changed, since the query is now built through the QueryManager component rather than through $services.query. The same holds for ReleaseNotesChangesMacroPageTest and ReportPageTest. * Derive the versions a final release note aggregates from getAggregatedVersions in the releasenotechanges macro, rather than parsing the page name in Velocity. * Read the versions the wiki holds a release note for with one query selecting the version property, rather than by loading every release note document to read a single string. This is the one behaviour that changes, and the reason the issue calls the search needlessly expensive. * Move the allocation of the page of a new entry into EntryPageAllocator, so that the change manager is about what a change holds. * Drop the xwiki-platform-extension-script runtime dependency of the UI module: comparing versions no longer goes through $services.extension. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Commit: 5912b58e80e7a97b47ac2da654840161c1ffd4f0 https://github.com/xwiki-contrib/application-releasenotes/commit/5912b58e80e... Author: Vincent Massol <[email protected]> Date: 2026-09-09 (Wed, 09 Sep 2026) Changed paths: M application-releasenotes-api/pom.xml A application-releasenotes-api/src/main/java/org/xwiki/contrib/releasenotes/ChangeFilter.java M application-releasenotes-api/src/main/java/org/xwiki/contrib/releasenotes/ChangeManager.java A application-releasenotes-api/src/main/java/org/xwiki/contrib/releasenotes/ChangeQuery.java A application-releasenotes-api/src/main/java/org/xwiki/contrib/releasenotes/ChangeQueryParser.java A application-releasenotes-api/src/main/java/org/xwiki/contrib/releasenotes/ChangeSearchResult.java A application-releasenotes-api/src/main/java/org/xwiki/contrib/releasenotes/internal/ChangeSearcher.java M application-releasenotes-api/src/main/java/org/xwiki/contrib/releasenotes/internal/DefaultChangeManager.java A application-releasenotes-api/src/main/java/org/xwiki/contrib/releasenotes/internal/DefaultChangeQueryParser.java A application-releasenotes-api/src/main/java/org/xwiki/contrib/releasenotes/internal/EntryPageAllocator.java M application-releasenotes-api/src/main/java/org/xwiki/contrib/releasenotes/script/ReleaseNotesScriptService.java M application-releasenotes-api/src/main/resources/META-INF/components.txt A application-releasenotes-api/src/test/java/org/xwiki/contrib/releasenotes/ChangeFilterTest.java A application-releasenotes-api/src/test/java/org/xwiki/contrib/releasenotes/internal/ChangeSearcherTest.java M application-releasenotes-api/src/test/java/org/xwiki/contrib/releasenotes/internal/DefaultChangeManagerTest.java A application-releasenotes-api/src/test/java/org/xwiki/contrib/releasenotes/internal/DefaultChangeQueryParserTest.java M application-releasenotes-api/src/test/java/org/xwiki/contrib/releasenotes/script/ReleaseNotesScriptServiceTest.java M application-releasenotes-ui/pom.xml M application-releasenotes-ui/src/main/resources/ReleaseNotes/Code/Change/GetChangesMacro.xml M application-releasenotes-ui/src/main/resources/ReleaseNotes/Code/Change/ReleaseNotesChangesMacro.xml M application-releasenotes-ui/src/test/java/org/xwiki/contrib/releasenotes/GetChangesMacroPageTest.java M application-releasenotes-ui/src/test/java/org/xwiki/contrib/releasenotes/ReleaseNotesApiComponentList.java M application-releasenotes-ui/src/test/java/org/xwiki/contrib/releasenotes/ReleaseNotesChangesMacroPageTest.java M application-releasenotes-ui/src/test/java/org/xwiki/contrib/releasenotes/ReportPageTest.java Log Message: ----------- Merge pull request #56 from xwiki-contrib/RN-114 RN-114: Move the change search from Velocity to Java Compare: https://github.com/xwiki-contrib/application-releasenotes/compare/9ef26d585d... To unsubscribe from these emails, change your notification settings at https://github.com/xwiki-contrib/application-releasenotes/settings/notificat...