Display project deletion audit event in group audit event log
What does this MR do and why?
This change implements project deletion audit events at the group level. When a project is deleted from a group the audit event is visible in the group's audit log rather than being lost with the deleted project.
The implementation modifies the existing project_destroyed audit event to add more details about the project that was deleted.
The implementation modifies the existing project_deletion_marked audit event to scope the events to the parent group for group projects.
References
[New Audit Event]: Display project deletion in ... (#39139 - closed)
Screenshots or screen recordings
How to set up and validate locally
- Have a Ultimate license
- Create a Group and a Project in that group
- Delete the Project via rails console
project = Project.find_by_full_path('group-name/project-name') user = User.find_by_username('root') service = Projects::DestroyService.new(project, user, {}) result = service.execute - Navigate to Group level audit events
Secure->Audit Events
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 #39139 (closed)
Edited by Nate Rosandich
