Problem/Motivation
When Admin Audit Trail is installed as part of a distribution install (verified with admin_audit_trail 1.0.10 on a distribution / install-profile based build), the optional views.view.admin_audit_trail configuration is not created: /admin/reports/audit-trail returns 404 and the view entity does not exist, while the module schema is already at 10002 so the repair update from #3567567 never runs. Uninstalling and reinstalling the module on the same site creates the view correctly.
Steps to reproduce
- Install a Drupal site through an install profile or a Drupal CMS style site-template recipe that enables Admin Audit Trail during the site install.
- Visit /admin/reports/audit-trail: 404. The view config entity is missing.
Proposed resolution
Add an update hook that installs the report view when it is missing and Views is enabled (re-using the #3567567 logic), so existing broken sites are repaired, and ensure the view is installed when the module is enabled in an install-profile context.
Remaining tasks
- ✅ File an issue
- ❌ Addition/Change/Update/Fix
- ❌ Testing to ensure no regression
- ➖ Automated unit/functional testing coverage
- ➖ Developer Documentation support
- ➖ User Guide Documentation support
- ➖ UX/UI designer responsibilities
- ➖ Accessibility and Readability
- ❌ Reviewed by a human
- ❌ Code review by maintainers
- ❌ Full testing and approval
- ❌ Credit contributors
- ❌ Review with the product owner
- ✅ Update Release Notes
- ✅ Release admin_audit_trail-1.0.11
User interface changes
- N/A
API changes
- N/A
Data model changes
- N/A
Release notes snippet
- Repaired the audit report view on sites where a distribution install skipped it.
Issue fork admin_audit_trail-3618734
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
rajab natshahComment #5
rajab natshahComment #7
rajab natshah✅ Released admin_audit_trail-1.0.11