mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-07-20 23:21:06 +02:00
refactor(backend): rename search_space -> workspace across app bulk (Phase 2 Wave D)
Scoped codemod over surfsense_backend/app (excluding routes/, Wave E): renames search_space_id -> workspace_id, search_space -> workspace, SearchSpace -> Workspace across services, utils, tasks, agents, gateway, event_bus, notifications, podcasts, automations, observability params, and prompt .md files. Also flips the camelCase payload key searchSpaceId -> workspaceId (no backend reader; hard cutover). Preserved carve-outs (verbatim): Celery task names "delete_search_space_background" and "ai_sort_search_space" (wire names), and the OTel/metric key "search_space.id" (dashboards depend on it). Enum values 'SEARCH_SPACE' and SearchSourceConnector untouched.
This commit is contained in:
parent
0c53d884eb
commit
7fb0707933
259 changed files with 1996 additions and 1996 deletions
|
|
@ -210,7 +210,7 @@ async def _resolve_slack_thread_binding(
|
|||
thread_binding = ExternalChatBinding(
|
||||
account_id=account.id,
|
||||
user_id=user_binding.user_id,
|
||||
search_space_id=user_binding.search_space_id,
|
||||
workspace_id=user_binding.workspace_id,
|
||||
state=ExternalChatBindingState.BOUND,
|
||||
external_peer_id=thread_peer_id,
|
||||
external_peer_kind=ExternalChatPeerKind.CHANNEL,
|
||||
|
|
@ -272,7 +272,7 @@ async def _resolve_discord_thread_binding(
|
|||
thread_binding = ExternalChatBinding(
|
||||
account_id=account.id,
|
||||
user_id=user_binding.user_id,
|
||||
search_space_id=user_binding.search_space_id,
|
||||
workspace_id=user_binding.workspace_id,
|
||||
state=ExternalChatBindingState.BOUND,
|
||||
external_peer_id=thread_peer_id,
|
||||
external_peer_kind=ExternalChatPeerKind.CHANNEL,
|
||||
|
|
@ -366,12 +366,12 @@ async def _dispatch_inbound_event(
|
|||
if (
|
||||
bundle.auto_bind_owner
|
||||
and account.owner_user_id
|
||||
and account.owner_search_space_id
|
||||
and account.owner_workspace_id
|
||||
):
|
||||
binding = ExternalChatBinding(
|
||||
account_id=account.id,
|
||||
user_id=account.owner_user_id,
|
||||
search_space_id=account.owner_search_space_id,
|
||||
workspace_id=account.owner_workspace_id,
|
||||
state=ExternalChatBindingState.BOUND,
|
||||
external_peer_id=parsed.external_peer_id,
|
||||
external_peer_kind=parsed.external_peer_kind,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue