[xwiki-contrib/documentation] f59061: DA-98: Add a check that pages with many child page...
Branch: refs/heads/vmassol/DA-98 Home: https://github.com/xwiki-contrib/documentation Commit: f590617643dbcae100456240a91d0b361350c0d1 https://github.com/xwiki-contrib/documentation/commit/f590617643dbcae1004562... Author: Vincent Massol <[email protected]> Date: 2026-10-07 (Wed, 07 Oct 2026) Changed paths: 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 M documentation-xwikiorg/documentation-xwikiorg-api/src/main/java/org/xwiki/contrib/documentation/internal/xwikiorg/HighlightsCheck.java M documentation-xwikiorg/documentation-xwikiorg-api/src/test/java/org/xwiki/contrib/documentation/internal/xwikiorg/HighlightsCheckTest.java Log Message: ----------- DA-98: Add a check that pages with many child pages provide Highlights * Extend the highlights check: when the Highlights field of a page is empty, count its direct child documentation pages (nested and terminal pages carrying a DocumentationClass object, translations excluded) with a single count query, and report a Warning when there are more than 15, with the number of child pages as context. * The threshold sits next to the maximum number of highlights. Terminal pages are not queried, and a query failure is logged as a warning. * Add unit tests for the threshold, a blank Highlights field, a filled one, terminal pages, pages without a DocumentationClass object and query failures. * Add a DocumentationIT step proving the query against a real database: a page with 15 child documentation pages and a non-documentation child gets no recommendation, and gets it once a 16th child documentation page is added. * Raise the coverage threshold of documentation-xwikiorg-api to 0.99. 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