Skip to content

Add audit event types for create, update, and delete custom admin roles event

What does this MR do and why?

Introduce new audit event types for creating, updating, and deleting admin custom roles.

References

Implements [BE] Distinguish audit events for custom admin ... (#536131 - closed).

Screenshots or screen recordings

Screen_Recording_2025-04-16_at_4.52.20_PM

How to set up and validate locally

  1. Enable feature flag

    $ rails c
    > Feature.enable(:custom_admin_roles)
  2. Login with an admin user (e.g. root)

  3. Go to /admin/application_settings/roles_and_permissions

  4. Create a new admin member role

  5. Update the newly created admin member role

  6. Delete the member role

  7. Go to /admin/audit_logs

  8. Verify that Admin role was created, Admin role was updated, and Admin role was deleted audit events are logged

    Screenshot_2025-04-16_at_4.51.33_PM

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.

Edited by Eugie Limpin

Merge request reports

Loading