Skip to content

Add CSV export button to Admin Audit Log

Tan Le requested to merge 1449-export-audit-events-to-csv-ui into master

What does this MR do?

Adds a CSV export button for Audit Events in Admin > Audit Log.

The backend controller is implemented in !31191 (merged).

feature flag (off by default): audit_log_export_csv

Mentions #1449 (closed)

Screenshots

Desktop Mobile
Screen_Shot_2020-09-17_at_1.16.42_pm Screen_Shot_2020-09-17_at_1.17.17_pm

Manual test

  • Turn on feature flag Feature.enable(:audit_log_export_csv)
  • Login as Administrator and the license is GitLab Premium or above
  • Navigate to http://localhost:3000/admin/audit_logs
  • Ensure the export to CSV button exist and able to export with the search filters

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • [-] Label as security and @ mention @gitlab-com/gl-security/appsec
  • [-] The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • [-] Security reports checked/validated by a reviewer from the AppSec team
Edited by Tan Le

Merge request reports