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.
Command icon 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

rajab natshah created an issue. See original summary.

rajab natshah’s picture

Issue summary: View changes

  • rajab natshah committed 92948a6d on 1.0.x
    fix: #3618734 Restore the report view on sites where an install profile...
rajab natshah’s picture

Status: Active » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

rajab natshah’s picture

Issue summary: View changes
Issue tags: +admin_audit_trail-1.0.11