fix: route workspace through bulk WebSocket clients and merge query params

Bulk clients (sync and async) were not forwarding the workspace parameter,
causing all bulk operations to hit the default workspace regardless of the
Api instance's workspace setting. Also fixes the gateway socket endpoint to
pass query parameters (including workspace) to the dispatcher, and prevents
the auth handshake from overwriting an explicitly set workspace.

Updates knowledge table store tests for paged query interface.
This commit is contained in:
Cyber MacGeddon 2026-06-02 14:18:06 +01:00
parent 6b1dd16f9f
commit 8d8fb5766d
6 changed files with 67 additions and 73 deletions

View file

@ -117,8 +117,10 @@ class SocketEndpoint:
running = Running()
params = dict(request.query)
params.update(request.match_info)
dispatcher = await self.dispatcher(
ws, running, request.match_info
ws, running, params
)
worker_task = tg.create_task(