Stream audit events using new audit event tables

Problem Statement

We are splitting the audit events table into 4 new tables

  1. user_audit_event
  2. project_audit_event
  3. group_audit_event
  4. instance_audit_event

Now we want to enable streaming from these tables instead of old table behind a feature flag

We will have to implement https://gitlab.com/gitlab-org/gitlab/-/blob/master/ee/app/models/ee/audit_event.rb#L66 method in new models for enterprise edition only as Streaming is EE only feature.

Edited by Harsimar Sandhu