Repository navigation
fix(audit): preserve viewer events with independent listeners - #1788
zack-dev-cm wants to merge 1 commit into
Conversation
Signed-off-by: zack-dev-cm <112114097+zack-dev-cm@users.noreply.github.com>
|
@zack-dev-cm is attempting to deploy a commit to the rohitg00's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
Merged as part of #1811, which kept your commits and added review fixes on top (details in its description). Thanks for the contribution. |
A second audit consumer currently replaces the viewer listener, and registering the viewer replaces an earlier consumer. Add independent
addAuditListener/removeAuditListenersubscriptions while preserving the legacy setter and its callback type.Listeners run once per function after the existing entry and month-index writes. Dispatch uses a snapshot: legacy callback first, then independent registration order. Listener changes during dispatch take effect on the next entry. Synchronous throws and rejected promises are isolated without awaiting callback completion. The existing viewer wiring remains unchanged.
Refs #1741, part 1. Sinks, backfill export, configuration and export payload/deletion policy remain separate work. Listener delivery is best effort within the process.
Validation:
recordAudit/ viewer coexistence failures on cf9, with two positive controls; the same four controls pass after the change.Summary by CodeRabbit
New Features
Documentation