Repository navigation
Release v1.5.0
Release 1.5.0
Changelog
Added
- Action log (opt-in,
nowo_audit_kit.action_log.entity_class): append-only who did what, to whom log, independent of the entity-level audit fields.ActionLog\AbstractActionLogmapped superclass:action(string 48),actor/subject(ManyToOneto the default profileuser_class,ON DELETE SET NULL),context(json),scope(string 64, nullable),ip_address(45),created_at(CreatedAtImmutableTrait). Explicit column names; hosts declare table, indexes and repository and may rename columns with attribute / association overrides (existing tables map with no migration).ActionLog\ActionLogRecorder:record()/recordAndFlush()withstring|BackedEnumactions, client IP fromRequestStack, optionalscope_context_key.ActionLog\ActionLogRepository+ActionLogCriteria: filters by actor, subject, actor-or-subject, scope(s), action(s), date range, limit / offset;countByCriteria(),findLatest(),findInvolving(); keysetpurgeBefore()in batches.nowo:audit-kit:action-log:purge --older-than-days=N [--action=…] [--all-actions] [--batch-size=N]with a configurable default action list (purge.actions).- Optional Twig partial
@NowoAuditKit/action_log/_timeline.html.twig(UiKitnowo-ui-*classes, overridable translation keys;NowoAuditKitBundletranslations en / es). - Configuration
action_log.{entity_class, register_mapping, scope_context_key, capture_ip, purge.{older_than_days, batch_size, actions}}; the bundle prepends the Doctrine mapping of the superclass when enabled.
- Spec
003-action-log(Beacon spec 138 FR-040), including a schema-diff test against a copy of Beacon'suser_actionmapping (SQLite and MySQL 8).
Dependencies
symfony/console^7.4 || ^8.0is now required (purge command).twig/twigadded as a dev requirement;symfony/twig-bundleandnowo-tech/ui-kit-bundleare suggested.
Full Changelog: v1.4.0...v1.5.0