SurfSense/surfsense_backend/tests/integration/document_upload
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
..
__init__.py feat: implement task dispatcher for document processing 2026-02-26 23:55:47 +05:30
conftest.py refactor(db): map search_space_id ORM attrs to physical workspace_id column 2026-06-26 12:05:52 +02:00
test_document_upload.py refactor: remove unused TestStatusPolling class from document upload integration tests 2026-02-27 01:52:35 +05:30
test_etl_credits.py feat(refactor): refactor payment system to implement unified credit wallet. 2026-06-10 16:49:03 -07:00
test_stripe_credit_purchases.py fix(tests):cover auth transport invariants 2026-06-24 03:55:39 +05:30
test_upload_limits.py refactor: streamline document upload limits and enhance handling of mentioned documents 2026-04-02 19:39:10 -07:00