Skip to content

New Models for audit event

Harsimar Sandhu requested to merge 454176-audit-events-new-models into master

What does this MR do and why?

New Models for audit event

This commit adds new models and a common model concern for newly added audit event tables

Changelog: added

We are splitting audit events table into 4 new tables: project_audit_events, group_audit_events , user_audit_events and instance_audit_events. This MR contains model code for these tables. I have copied the code from https://gitlab.com/gitlab-org/gitlab/-/blob/master/app/models/audit_event.rb and https://gitlab.com/gitlab-org/gitlab/-/blob/master/ee/app/models/ee/audit_event.rb to these new models.

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

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

Related to #454176

Edited by Harsimar Sandhu

Merge request reports