SurfSense/surfsense_backend/tests/integration
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/multi_agent_chat feat: antropic model added fix & kb tooling fixes 2026-06-25 20:19:44 -07:00
chat refactor(auth): replace user variable with auth context in integration and unit tests 2026-06-20 03:11:00 +05:30
composio refactor(auth): replace user variable with auth context in integration and unit tests 2026-06-20 03:11:00 +05:30
document_upload refactor(db): map search_space_id ORM attrs to physical workspace_id column 2026-06-26 12:05:52 +02:00
etl_pipeline/cache chore: linting 2026-06-17 22:31:36 -07:00
google_unification citations: consolidate prompts, retire eager path, refresh ADR 2026-06-25 15:27:09 +02:00
harness feat: updated agent harness 2026-04-28 09:22:19 -07:00
indexing_pipeline Revert "Merge pull request #1523 from CREDO23/fix/chat-citations" 2026-06-22 22:55:29 -07:00
notifications refactor(auth): replace user variable with auth context in integration and unit tests 2026-06-20 03:11:00 +05:30
podcasts refactor(auth): replace user variable with auth context in integration and unit tests 2026-06-20 03:11:00 +05:30
retriever agent: retire eager KB priority/planner path and its dead flags 2026-06-25 18:37:14 +02:00
__init__.py test: bootstrap pytest environment for backend 2026-02-24 18:19:56 +02:00
conftest.py Revert "Merge pull request #1523 from CREDO23/fix/chat-citations" 2026-06-22 22:55:29 -07:00
test_auth_transport_invariant.py chore: fix linting 2026-06-25 04:31:22 +05:30
test_connector_index_authz.py refactor(routes): replace user variable with auth context in tests 2026-06-20 03:34:40 +05:30
test_document_versioning.py chore: ran linting 2026-04-03 13:14:40 +05:30
test_obsidian_plugin_routes.py refactor(db): map search_space_id ORM attrs to physical workspace_id column 2026-06-26 12:05:52 +02:00
test_pat_fail_closed_authz.py test(auth): cover PAT fail-closed authorization 2026-06-20 02:13:05 +05:30
test_zero_authz_context.py fix(authz):add zero context authorization checks 2026-06-23 12:55:25 +05:30