• Tan Le's avatar
    Find audit events based on audit level · 01ee9caf
    Tan Le authored
    Introduce new `Audit::Level` class to facilitate finding based on audit
    level. This object can be later used by `AuditLogFinder` to construct
    ActiveRecord query.
    
    For `Audit::GroupLevel`, we would like to see all Project-level events
    related to projects that belong to the group. By default, if the
    `resource` argument is not a known type, we will return
    `Audit::InstanceLevel` and later inferred as `AuditEvent.all`
    scope.
    01ee9caf
audit_events_controller.rb 807 Bytes