mirror of
https://github.com/block/buzz.git
synced 2026-08-18 06:50:31 +02:00
L6 finding: WorkflowsView's allWorkflowsQuery issued one get_channel_workflows relay POST per member channel (Promise.all fanout) — N round-trips scaling with channel count on the Workflows overview. A nostr #h filter matches ANY listed value, so one query with all channel ids returns the identical set. Added get_channels_workflows(channel_ids) which queries once; each WorkflowWire already carries its own channel_id (from the event h tag), so WorkflowsView groups results client-side via a channelId->name map. Neither the per-channel nor the batched command sets a limit, so batching does not change result completeness (review-bar #3: no shared-limit truncation). e2eBridge gains a matching get_channels_workflows mock so overview e2e still resolves. Single-channel get_channel_workflows stays for useChannelWorkflowsQuery. Co-authored-by: Tyler Longwell <tlongwell@block.xyz> Signed-off-by: Tyler Longwell <tlongwell@block.xyz>