[xwiki-contrib/documentation] 63cb20: DA-96: Add a check for version macros older than t...
Branch: refs/heads/master Home: https://github.com/xwiki-contrib/documentation Commit: 63cb2056ebdc5bd61db930237f16320dbaa833d6 https://github.com/xwiki-contrib/documentation/commit/63cb2056ebdc5bd61db930... Author: Vincent Massol <[email protected]> Date: 2026-10-06 (Tue, 06 Oct 2026) Changed paths: M documentation-test/documentation-test-docker/pom.xml M documentation-test/documentation-test-docker/src/test/it/org/xwiki/contrib/documentation/test/docker/DocumentationIT.java M documentation-xwikiorg/documentation-xwikiorg-api/pom.xml A documentation-xwikiorg/documentation-xwikiorg-api/src/main/java/org/xwiki/contrib/documentation/internal/xwikiorg/DocumentationConfigurationSource.java A documentation-xwikiorg/documentation-xwikiorg-api/src/main/java/org/xwiki/contrib/documentation/internal/xwikiorg/VersionMacroCheck.java M documentation-xwikiorg/documentation-xwikiorg-api/src/main/resources/META-INF/components.txt A documentation-xwikiorg/documentation-xwikiorg-api/src/test/java/org/xwiki/contrib/documentation/internal/xwikiorg/DocumentationConfigurationSourceTest.java A documentation-xwikiorg/documentation-xwikiorg-api/src/test/java/org/xwiki/contrib/documentation/internal/xwikiorg/VersionMacroCheckTest.java M documentation-xwikiorg/documentation-xwikiorg-ui/pom.xml A documentation-xwikiorg/documentation-xwikiorg-ui/src/main/resources/DocApp/Code/DocumentationConfiguration.xml A documentation-xwikiorg/documentation-xwikiorg-ui/src/main/resources/DocApp/Code/DocumentationConfigurationClass.xml A documentation-xwikiorg/documentation-xwikiorg-ui/src/main/resources/DocApp/Code/XWikiOrgTranslations.xml Log Message: ----------- DA-96: Add a check for version macros older than the supported LTS cycle (#15) * DA-96: Add a check for version macros older than the supported LTS cycle * Add a `versionMacro` check reporting, as a Warning, every `{{version}}` macro without a `product` parameter whose `since` (or, when `since` is empty, `before`) versions are all older than the oldest supported XWiki version * Add a "Documentation" section to the wiki Administration (Other category), backed by the new `DocApp.Code.DocumentationConfigurationClass` and `DocApp.Code.DocumentationConfiguration` pages, to set that oldest supported version; do nothing when it is empty * Read it live through a new `documentation` configuration source based on `AbstractDocumentConfigurationSource`, whose cache is cleared when the configuration object changes, so no restart is needed * Look in the page content, the FAQ and inside macros whose content is wiki content (including other version macros) * Compare versions with the xwiki-commons extension `DefaultVersion`, already a transitive dependency * Add a functional test setting the version in the Administration and checking that the violation is then reported Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> * DA-96: Add a check for version macros older than the supported LTS cycle * Also check version macros whose product parameter is explicitly set to XWiki (the macro's default product), case-insensitively; macros about any other product (e.g. extensions) are still ignored Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> * DA-96: Add a check for version macros older than the supported LTS cycle * Declare the runtime dependency on xwiki-platform-administration-ui, needed by XWiki.ConfigurableClass to display the Documentation Administration section (it was missing from the functional test instance) * Fix the functional test to locate the Administration form by the page holding the ConfigurableClass object (DocApp.Code.DocumentationConfiguration), which is what ConfigurableClass uses for the form id, rather than by the configuration class Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> --------- Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]> To unsubscribe from these emails, change your notification settings at https://github.com/xwiki-contrib/documentation/settings/notifications
participants (1)
-
XWiki Notifications