Skip to content

Fix audit event streaming rollout actors

What does this MR do and why?

  • During the rollout of audit event streaming it was discovered by @stkerr that in an environment where only particular groups had the flag enabled, it would fail to send project events to the group's destination entirely.
  • This MR resolves that issue so that we can continue to roll out the issue in production on an actor-by-actor basis.

How to set up and validate locally

  1. Enable the flag globally.

    Feature.enable(:ff_external_audit_events_namespace)
  2. Follow the documentation to set up an audit streaming destination for a group. (Use something like requestbin to setup and endpoint.)

  3. Create a project within that group and generate an audit event. (Try adding a member to that group.)

  4. Note that the event was sent as expected.

  5. Disable the flag globally, and re-enable it only for your group.

  6. Create a new project event. (Try adding another member to that group!)

  7. The event should be sent again. (This is what didn't work before this MR's changes)

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Merge request reports

Loading