Add audit event and internal event for AI Catalog item version restore

What does this MR do and why?

Add audit event tracking when an item owner restores a previous version as the new latest version. The audit message includes the source and new version numbers for traceability.

References

Issue : #601095 (closed) MR to Restore version : !238902 (merged)

How to set up and validate locally

  1. Use How to set up and validate locally steps from this MR and restore the item version.

  2. Once you do it, you can see audit log on Project > Secure > Audit Events, see below:

Click to expand

image

  1. To view the Internal event, make sure your docker and runner is running. Then execute rails runner scripts/internal_events/monitor.rb restore_ai_catalog_item to see internal audit event logs. see below:
Click to expand

image

MR acceptance checklist

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

Related to #601095 (closed)

Merge request reports

Loading