fix(workspace): reconcile listed repos with the configured (postgres) DB - #1853
Open
sloemo01 wants to merge 2 commits into
Open
fix(workspace): reconcile listed repos with the configured (postgres) DB#1853sloemo01 wants to merge 2 commits into
sloemo01 wants to merge 2 commits into
Repowise Bot / Repowise / code health
succeeded
Aug 29, 2026 in 0s
Health gate passed
Repository health 7.3 -> 7.3. No configured gate rule tripped.
Details
Symbols changed (blast radius)
packages/server/src/repowise/server/routers/workspace.py::_query_repo_stats: signature, 0 caller(s) outside this PRpackages/server/src/repowise/server/routers/workspace.py::_query_top_language: signature, 0 caller(s) outside this PRpackages/server/src/repowise/server/routers/workspace.py::get_contracts: signature, 0 caller(s) outside this PRtests/unit/server/test_workspace_router.py::_make_workspace_app: signature, 0 caller(s) outside this PRtests/unit/server/test_workspace_router.py::test_file_count_excludes_symbol_nodes: signature, 0 caller(s) outside this PRtests/unit/server/test_workspace_router.py::test_hotspot_count_uses_is_hotspot_flag: signature, 0 caller(s) outside this PRtests/unit/server/test_workspace_router.py::test_hotspot_count_zero_when_no_hotspots: signature, 0 caller(s) outside this PRtests/unit/server/test_workspace_router.py::test_per_repo_cost_does_not_grow_with_repo_count: signature, 0 caller(s) outside this PRtests/unit/server/test_workspace_router.py::test_top_language_excludes_symbol_nodes: signature, 0 caller(s) outside this PRpackages/server/src/repowise/server/routers/workspace.py::_query_repo_stats_from_db: added, 0 caller(s) outside this PRpackages/server/src/repowise/server/routers/workspace.py::_query_repo_stats_from_sqlite: added, 0 caller(s) outside this PRtests/unit/server/test_workspace_router.py::test_configured_db_repo_reported_as_indexed: added, 0 caller(s) outside this PRpackages/server/src/repowise/server/routers/workspace.py::get_workspace: body, 0 caller(s) outside this PRpackages/server/src/repowise/server/routers/workspace.py::get_workspace_graph: body, 0 caller(s) outside this PRpackages/server/src/repowise/server/routers/workspace.py::sync_workspace: body, 0 caller(s) outside this PRtests/unit/server/test_workspace_router.py::TestGetWorkspace: body, 0 caller(s) outside this PRtests/unit/server/test_workspace_router.py::TestQueryRepoStats: body, 0 caller(s) outside this PRtests/unit/server/test_workspace_router.py::TestRepoQueryBudget: body, 0 caller(s) outside this PR
Review priority (recent bug-fix history)
tests/unit/server/test_workspace_router.py: fixed 4x in the last ~6 monthspackages/server/src/repowise/server/routers/workspace.py: fixed 3x in the last ~6 months
Touched hotspots (blast radius)
packages/server/src/repowise/server/routers/workspace.py: 16 commits/90d, 9 dependents, owner Raghav Chamadiyatests/unit/server/test_workspace_router.py: 10 commits/90d, 3 dependents, owner Raghav Chamadiya
Hidden coupling (co-change partners not in this PR)
packages/server/src/repowise/server/routers/workspace.pyco-changes withpackages/server/src/repowise/server/schemas/workspace.py(6x)packages/server/src/repowise/server/routers/workspace.pyco-changes withpackages/types/src/workspace.ts(6x)packages/server/src/repowise/server/routers/workspace.pyco-changes withpackages/server/src/repowise/server/schemas/__init__.py(5x)tests/unit/server/test_workspace_router.pyco-changes withpackages/server/src/repowise/server/schemas/workspace.py(5x)packages/server/src/repowise/server/routers/workspace.pyco-changes withpackages/cli/src/repowise/cli/commands/workspace_cmd.py(4x)
Change risk
- Raw change-risk score: 8.8/10 (banded moderate, riskier than 52% of this repo's commits)
- Driven by: more lines added than baseline
Annotations
Check warning on line 1085 in packages/server/src/repowise/server/routers/workspace.py
repowise-bot / Repowise / code health
Introduced: large method
sync_workspace is 145 lines long
Check warning on line 1085 in packages/server/src/repowise/server/routers/workspace.py
repowise-bot / Repowise / code health
Introduced: complex method
sync_workspace has cyclomatic complexity 18
Check warning on line 634 in packages/server/src/repowise/server/routers/workspace.py
repowise-bot / Repowise / code health
Introduced: complex method
get_workspace_graph has cyclomatic complexity 17
Loading