mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-06-17 02:45:14 +02:00
fix: route workspace through bulk WebSocket clients and merge query params (#970)
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:
parent
6b1dd16f9f
commit
00bb964e93
6 changed files with 67 additions and 73 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue