Resolve "Create audit events for manually triggered housekeeping"
What does this MR do and why?
Adds a project level audit event for when housekeeping is triggered by a user action. e.g an API request or request from the web UI.
related to: #390761 (closed)
How to set up and validate locally
From web:
- Trigger housekeeping for a project (
Settings
->General
-> ExpandAdvanced
-> ClickRun housekeeping
orPrune unreachable objects
) - Check for the audit event (Security and Compliance -> Audit events)
Via api:
- Trigger housekeeping via api Something like
curl -XPOST 'http://127.0.0.1:3000/api/v4/projects/31/housekeeping?private_token=someprivatetoken'
- Check for the audit event (Security and Compliance -> Audit events)
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #390761 (closed)
Edited by Jerry Seto