SurfSense/surfsense_backend/app
CREDO23 533cdfcc81 refactor(db): map search_space_id ORM attrs to physical workspace_id column
Phase 1 (rename DB) commit 1a: shim every search_space_id /
owner_search_space_id column to the renamed physical column
(workspace_id / owner_workspace_id) via Column("workspace_id", ...),
keeping the ORM attribute name unchanged so existing callers are
untouched. Flip all Table-level references that resolve by column key
(inner __table_args__ strings, the ck_connections_scope_owner CHECK
text, and the _INDEX_DEFINITIONS runtime DDL) plus the searchspace-named
constraint/index names to workspace_id. Update the three raw-SQL test
fixtures that referenced the physical column.

Note: SQLAlchemy defaults a column's key to its name, so passing an
explicit "workspace_id" name moves the Table.c key to workspace_id;
Table-level string refs must therefore change in this phase (the
opposite of the original plan's finding 1). The ORM attribute, the
SearchSpace class, relationships, table names, and FK target strings are
intentionally left for later commits/Phase 2.

Verified: unit 2375 passed/1 skip, integration 346 passed (baseline
parity); create_all builds every table with workspace_id.
2026-06-26 12:05:52 +02:00
..
agents feat: antropic model added fix & kb tooling fixes 2026-06-25 20:19:44 -07:00
auth chore: fix linting 2026-06-25 04:31:22 +05:30
automations Merge pull request #1539 from CREDO23/improve-chat-agent-context-and-citations 2026-06-25 13:34:52 -07:00
config chore: fix linting 2026-06-25 04:31:22 +05:30
connectors feat(etl-cache): route all file-based sources through the parse cache 2026-06-12 14:47:25 +02:00
etl_pipeline chore: linting 2026-06-17 22:31:36 -07:00
event_bus refactor(event_bus): wire catalog and events into package, rename builtin to events 2026-05-29 22:15:18 +02:00
file_storage refactor(routes): update document file access functions to use auth context instead of user variable 2026-06-20 02:53:07 +05:30
gateway refactor: streamline auth context usage across chat and automation routes 2026-06-19 21:04:21 +05:30
indexing_pipeline Revert "Merge pull request #1523 from CREDO23/fix/chat-citations" 2026-06-22 22:55:29 -07:00
notifications feat(auth): require sessions for user-scoped routes 2026-06-20 01:57:48 +05:30
observability feat(observability): add chunk reconcile metric and kill-switch flag 2026-06-12 18:52:57 +02:00
podcasts feat: fix desktop auth issues 2026-06-25 20:58:50 -07:00
prompts prompts: remove orphaned system_prompt_composer surface 2026-06-25 18:37:04 +02:00
retriever Revert "Merge pull request #1523 from CREDO23/fix/chat-citations" 2026-06-22 22:55:29 -07:00
routes Merge pull request #1539 from CREDO23/improve-chat-agent-context-and-citations 2026-06-25 13:34:52 -07:00
schemas Merge pull request #1539 from CREDO23/improve-chat-agent-context-and-citations 2026-06-25 13:34:52 -07:00
services feat: antropic model added fix & kb tooling fixes 2026-06-25 20:19:44 -07:00
tasks Merge pull request #1539 from CREDO23/improve-chat-agent-context-and-citations 2026-06-25 13:34:52 -07:00
templates feat: update report generation and export capabilities to support multiple formats (PDF, DOCX, HTML, LaTeX, EPUB, ODT, plain text) across documentation and backend 2026-03-09 18:41:21 -07:00
utils Merge pull request #1540 from DhruvTilva/fix/table-element-text-as-html-keyerror 2026-06-25 13:35:41 -07:00
__init__.py feat: SurfSense v0.0.6 init 2025-03-14 18:53:14 -07:00
app.py chore: fix linting 2026-06-25 04:31:22 +05:30
celery_app.py fix(auth):schedule refresh token cleanup 2026-06-23 12:50:02 +05:30
db.py refactor(db): map search_space_id ORM attrs to physical workspace_id column 2026-06-26 12:05:52 +02:00
exceptions.py feat: add processing mode support for document uploads and ETL pipeline, improded error handling ux 2026-04-14 21:26:00 -07:00
rate_limiter.py try: ip fix for cludflare 2026-04-16 02:13:52 -07:00
session_events.py refactor: anonymous/free chat experience 2026-05-31 15:58:21 -07:00
users.py chore: fix linting 2026-06-25 04:31:22 +05:30
zero_publication.py fix(authz):publish zero parent tables 2026-06-23 12:53:36 +05:30