SSE: Emit bom.merged event on BOM merge #46
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
When the BOM merge endpoint (#45) processes a merge, emit an SSE event so connected clients (silo-mod Activity pane, web UI) receive real-time notification of the merge result.
Event Format
Implementation
This is a single
s.broker.Publish()call at the end ofHandleMergeBOMinbom_handlers.go:Notes
Broker.Publish(eventType string, data string)is the existing method signatureunchangedarray is omitted from the SSE payload (replaced withunchanged_count) to keep event size small