Install

Works with Drupal: ^11.3 || ^12

Using Composer to manage Drupal site dependencies

Alternative installation files

Download tar.gz 1.47 MB
MD5: da81a7ce51a0c70beae0947ab7a30ed4
SHA-1: c56396a92eec9c018efccd433170906ea19ee828
SHA-256: d7c6498a1168a2ab699e9d918d2e380fa3c7b40306a31a2430175f8238ff5edf
Download zip 1.81 MB
MD5: dd214a2881e2f6a9e49db0ebbf994a85
SHA-1: 69b4c2541e9e3601c1824e5b89895f9a214039a5
SHA-256: d51ffd5f3e273a1aafaaeeca12ccd1a48bb619f53eef6132716d1ba1b4eb04f6

Release notes

This release renames the retention lifecycle, which was called auto-archive, and adds buttons that apply retention and TSA timestamping to every chain at once, without waiting for cron. The retention durations are now shown and checked whether or not cron applies them.

Upgrading

Warning: no migration path. There is no update hook until the first beta release, so updating does not move the renamed settings below: an existing install either moves them by hand or reinstalls the module. Uninstalling drops its tables, and with them every chained entry, segment and acknowledgment the site holds. A site on a release older than 1.0.0-alpha19 has to reinstall, since that release changed the schema.

From 1.0.0-alpha19 there is no schema change. The retention settings were renamed: the cron_archive block of audit_trail.settings is now retention, and its enabled key is now apply_on_cron. The other keys keep their names and values. Move the block in the exported audit_trail.settings.yml and import the configuration. Until then the module finds no retention settings, and cron applies no retention.

The per-chain state keys moved from audit_trail.cron_archive.* to audit_trail.retention.*. Moving them is optional: without them, the next run applies retention at once and each stage starts again from its oldest candidate. The old keys can then be deleted.

For code and scripts: the drush command audit_trail:auto-archive is now audit_trail:apply-retention. The Archive\AutoArchive service (audit_trail.auto_archive) is now Archive\RetentionApplier (audit_trail.retention_applier). The chain operation route audit_trail.chain_auto_archive is now audit_trail.chain_apply_retention, at /admin/reports/audit-trail/{chain}/apply-retention. In audit_trail_tsa, AutoTimestamp::stampDueChains() now returns what it did on each chain.

New

  • Apply retention to all chains (#3620487). A button at the top of the chains page, and Apply retention now on the settings page, open a confirmation that shows the thresholds of each active chain. Confirming runs every stage that is due on every active chain, the way cron does, without waiting for the cron interval. It works with retention on cron off: with this button, the Apply retention operation of one chain and drush audit_trail:apply-retention, it is how segments get created on such a site.
  • Timestamp all chains (#3620487). In audit_trail_tsa, a button at the top of the chains page and on the TSA settings page runs the cron timestamping pass at once. Like cron, it skips a chain that opted out of TSA and a chain whose head is already a timestamp; unlike cron, it does not wait for the interval, and it runs with cron timestamping off. With TSA timestamping switched off, it stamps nothing and says so.

Changed

  • Auto-archive is now Apply retention (#3620487). The run covers coverage, transient purge, archive, live purge, file purge and compaction, not only archiving. The settings section is Retention lifecycle, its checkbox Apply retention on cron, and the chain operation Apply retention.
  • Retention durations shown and checked with cron off (#3620487). The settings page hid the durations and skipped their checks while retention on cron was off, although an on-demand run applies them: a set out of order could be saved, and every on-demand run then refused the chain. They are now always shown and checked, and the warning about a bucket larger than a threshold is given too. Only the cron interval depends on the checkbox.
  • Restored rows and retention (#3620487). The restore and import forms, and drush audit_trail:archive-restore, say that the next retention run purges restored rows again, whether cron or an operator starts it, and not only cron.
  • Compact entries (#3620485). On the entries page, the two rows of an entry are sized by their content instead of Claro's fixed cell height, so an entry's values and its message read as one. The check dot sits right after the entry's ID, in place of a column of its own. ID columns are labeled ID, and the message filter is labeled Message template contains, which is what it matches.
  • Opening an archive still on the server (#3620484). The page that opens archive files by upload points to the Open in archived entries operation on the segments page for a file still in the archive directory.

Fixed

  • Plural strings (#3620486). Every singular form of a plural string uses @count instead of a literal 1. Languages such as French use the singular form for zero, and read "1" where there was none.
Created by: mably
Created on: 13 Nov 2026 at 10:42 UTC
Last updated: 13 Nov 2026 at 10:43 UTC
Bug fixes

Other releases