Branch: refs/heads/architecture-release-note-sections Home: https://github.com/xwiki-contrib/application-releasenotes Commit: 46a4d4c62eedc34896027bc242558c5518acd078 https://github.com/xwiki-contrib/application-releasenotes/commit/46a4d4c62ee... Author: Vincent Massol <[email protected]> Date: 2026-10-11 (Sun, 11 Oct 2026) Changed paths: M application-releasenotes-api/src/main/java/org/xwiki/contrib/releasenotes/ChangeQuery.java M application-releasenotes-api/src/main/java/org/xwiki/contrib/releasenotes/ChangeQueryParser.java M 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/DefaultChangeQueryParser.java M 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/DefaultChangeQueryParserTest.java 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/ReleaseNotesChangesMacroPageTest.java Log Message: ----------- RN-134: The changes excluded from a release note still count against its limit and can trigger the truncation warning * ChangeQuery holds the pages of the changes to leave out (getExclusions/setExclusions), and ChangeSearcher leaves them out along with the ones the view filter refuses, i.e. before the page is cut * ChangeQueryParser reads them from a new "exclusions" parameter, resolving each page name and skipping the blank ones * The getChanges macro takes a new optional "exclusions" parameter, and releasenotechanges hands its own exclusions to it instead of removing them from the published lists afterwards * Test the exclusions in the searcher, the parser and the release note macro Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Commit: a18b545ef7b91d03f8f4455ec49377bee45e2b61 https://github.com/xwiki-contrib/application-releasenotes/commit/a18b545ef7b... Author: Vincent Massol <[email protected]> Date: 2026-10-11 (Sun, 11 Oct 2026) Changed paths: M application-releasenotes-api/src/main/java/org/xwiki/contrib/releasenotes/ChangeQuery.java A application-releasenotes-api/src/main/java/org/xwiki/contrib/releasenotes/ReleaseNoteSection.java M application-releasenotes-api/src/main/java/org/xwiki/contrib/releasenotes/script/ReleaseNotesScriptService.java A application-releasenotes-api/src/test/java/org/xwiki/contrib/releasenotes/ReleaseNoteSectionTest.java M application-releasenotes-api/src/test/java/org/xwiki/contrib/releasenotes/script/ReleaseNotesScriptServiceTest.java M application-releasenotes-ui/src/main/resources/ReleaseNotes/Code/Change/ReleaseNotesChangesMacro.xml M application-releasenotes-ui/src/test/java/org/xwiki/contrib/releasenotes/ReleaseNotesChangesMacroPageTest.java Log Message: ----------- RN-135: Define the sections of a release note in the Java API * New ReleaseNoteSection: for the query of a release note, its three sections in display order, each with its audience and the queries of its main and miscellaneous changes (screenshots for users and administrators, importance for developers) * New ChangeQuery copy constructor, and $services.releasenotes.getSections(query) * releasenotechanges loops over the sections instead of repeating three blocks: it builds its query with parseQuery, searches each part itself and keeps the forms and the rendering; the add-change condition is computed once * The changes are still published under the userChanges, userMiscChanges, ... variables; getChanges and displayChanges are unchanged * Verified on a wiki that the rendered release note is identical before and after Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Compare: https://github.com/xwiki-contrib/application-releasenotes/compare/a427c5ee28... To unsubscribe from these emails, change your notification settings at https://github.com/xwiki-contrib/application-releasenotes/settings/notificat...
participants (1)
-
XWiki Notifications