Problem/Motivation

  • No export feature
  • No REST Export API view

Proposed resolution

It could be very useful to us if Admin Audit Trail data could be exported in various serialization formats -- either through native functionality or by exposing the data to Views so that a REST Export display could be created.

Remaining tasks

  • ✅ File an issue
  • ➖ Addition/Change/Update/Fix
  • ➖ Testing to ensure no regression
  • ➖ Automated unit testing coverage
  • ➖ Automated functional testing coverage
  • ➖ UX/UI designer responsibilities
  • ➖ Readability
  • ➖ Accessibility
  • ➖ Performance
  • ➖ Security
  • ➖ Documentation
  • ➖ Code review by maintainers
  • ➖ Full testing and approval
  • ➖ Credit contributors
  • ➖ Review with the product owner
  • ➖ Release notes snippet
  • ❌ Release

API changes

  • N/A

Data model changes

  • N/A

Release notes snippet

  • N/A
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

wrd-oaitsd created an issue. See original summary.

rajab natshah’s picture

Issue summary: View changes
docans’s picture

Any updates on this Issue

deciphered made their first commit to this issue’s fork.

deciphered changed the visibility of the branch feature/3284680-export_csv to hidden.

deciphered changed the visibility of the branch 1.0.x to hidden.

deciphered’s picture

Status: Active » Needs work

I've added a basic CSV export as required for an integration.

It adds a route: /admin/reports/audit-trail/export.
It adds a link to "Export CSV" on the overview page.
It adds the applied filters to the Export CSV link.

deciphered changed the visibility of the branch 1.0.x to active.

deciphered’s picture

I refactored the PR to add support for Batching of the export due to the large amount of data that can be contained on a site.

It still needs work to improve the UX, as the file is downloaded at the end of the batch process, and not redirected back to the overview form.

rajab natshah’s picture

Status: Needs work » Needs review
rajab natshah’s picture

Thank you, William, for filing the issue, and Stuart, for the MR.

After a discussion with the maintainers, we decided to convert it to Views as in #3272242: Expose audit trail report as a View.
With that, any Views export method will now be available.

rajab natshah’s picture

Status: Needs review » Closed (won't fix)

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.