Create audit event when a visualisation is shared
What does this MR do and why?
- Adds two new audit event types
- Adds
AuditVisualizationEventService
which callsShareVisualizationAuditor
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
How to set up and validate locally
- 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"}
}
- Visit audit logs http://gdk.test:3000/admin/audit_logs
- You should see a new audit log added
Related to #460475
Edited by Halil Coban