feat: add audit for unused content fragments #1574
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR introduces a new audit to monitor and identify unused content fragments on AEM to optimize content governance and reduce system overhead.
What's New
Content Fragment Unused Audit (
content-fragment-unused): Analyzes content fragments in AEM to identify unused content that has remained in draft, modified, or unpublished states for extended periods (90+ days). The audit categorizes fragments by their lifecycle status and provides detailed statistics including age distribution, counts, and percentages to help teams prioritize cleanup efforts.The audit identifies four categories of unused content:
NEW: Fragments created but never publishedDRAFT: Fragments created and modified but never publishedUNPUBLISHED: Fragments that were published then unpublished without further modificationsMODIFIED: Previously published fragments with unpublished changesUse Case
Content governance optimization for AEM Sites: Automatically detect stale and unused content fragments across AEM Sites by analyzing content lifecycle status and age. The audit provides actionable insights to help teams identify orphaned drafts, abandoned work-in-progress, and outdated content, enabling focus on active content management. Each finding includes detailed metadata such as fragment age, last modification date, and publication history to support informed cleanup decisions.
Depends on adobe/spacecat-shared#1135