Skip to content

Create audit event when a visualisation is shared

What does this MR do and why?

  • Adds two new audit event types
  • Adds AuditVisualizationEventService which calls ShareVisualizationAuditor to audit the newly added events
  • Adds a new endpoint post ':project_id/analytics/events/audit' which calls AuditVisualizationEventService

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshot_2024-06-04_at_12.28.22

How to set up and validate locally

  1. Make a http request
POST http://gdk.test:3000/api/v4/projects/[PROJECT_ID]/analytics/events/audit?private_token=[YOUR_TOKEN]
Content-Type: application/json; charset=UTF-8

{
  "event_type": "upload_analytics_image",
  "additional_details": {"some_key": "some value"}
}
  1. Visit audit logs http://gdk.test:3000/admin/audit_logs
  2. You should see a new audit log added

Related to #460475

Edited by Halil Coban

Merge request reports

Loading