Skip to content

[docs] Add comments / instructions about the new database migrations#4733

Draft
junaway wants to merge 1 commit into
mainfrom
docs/improve-internal-docs-about-database-migrations
Draft

[docs] Add comments / instructions about the new database migrations#4733
junaway wants to merge 1 commit into
mainfrom
docs/improve-internal-docs-about-database-migrations

[docs] Add comments / instructions about the new database migrations …

6f3cd03
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
GitHub Actions / Application API Unit Test Results failed Jun 18, 2026 in 0s

1 fail, 862 pass in 23s

863 tests   862 ✅  23s ⏱️
  1 suites    0 💤
  1 files      1 ❌

Results for commit 6f3cd03.

Annotations

Check warning on line 0 in oss.tests.pytest.unit.services.test_db_manager

See this annotation in the file changed.

@github-actions github-actions / Application API Unit Test Results

test_get_default_workspace_id_prefers_owner_membership (oss.tests.pytest.unit.services.test_db_manager) failed

api/oss/tests/results/junit.xml [took 0s]
Raw output
AssertionError: assert '5f1183df-48d...-0e7ea1f3c19f' == '2a3250df-d73...-1fc8fa0ffcd5'
  
  - 2a3250df-d73f-4d04-93b2-1fc8fa0ffcd5
  + 5f1183df-48d8-4d12-918e-0e7ea1f3c19f
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f39cb3ea350>

    @pytest.mark.asyncio
    async def test_get_default_workspace_id_prefers_owner_membership(monkeypatch):
        owner_workspace_id = uuid4()
        editor_workspace_id = uuid4()
    
        _patch_core_session(
            monkeypatch,
            [
                SimpleNamespace(
                    workspace_id=editor_workspace_id,
                    role="editor",
                    created_at=datetime(2026, 4, 9, tzinfo=timezone.utc),
                ),
                SimpleNamespace(
                    workspace_id=owner_workspace_id,
                    role="owner",
                    created_at=datetime(2026, 4, 10, tzinfo=timezone.utc),
                ),
            ],
        )
    
        workspace_id = await db_manager.get_default_workspace_id(str(uuid4()))
    
>       assert workspace_id == str(owner_workspace_id)
E       AssertionError: assert '5f1183df-48d...-0e7ea1f3c19f' == '2a3250df-d73...-1fc8fa0ffcd5'
E         
E         - 2a3250df-d73f-4d04-93b2-1fc8fa0ffcd5
E         + 5f1183df-48d8-4d12-918e-0e7ea1f3c19f

oss/tests/pytest/unit/services/test_db_manager.py:80: AssertionError