Skip to content

refactor: extract cmd_status 3-tier fallback + add tests#67

Merged
joy-software merged 1 commit into
developfrom
refactor/extract-cmd-status-v2
Jun 7, 2026
Merged

refactor: extract cmd_status 3-tier fallback + add tests#67
joy-software merged 1 commit into
developfrom
refactor/extract-cmd-status-v2

Conversation

@joy-software

Copy link
Copy Markdown
Contributor

REFACTOR-4. cmd_status fallback extracted into _status_via_owner/_status_via_ro_open/_status_via_fts (+ _empty_status_source); renders once, output unchanged. New test_status_fallback.py (9 tests). Rebased onto current develop and re-applies the #60 status-display fix (would create graph.duckdb, Endpoints: unknown).

cmd_status's owner/RO/FTS fallback ladder extracted into _status_via_owner,
_status_via_ro_open, _status_via_fts (+ _empty_status_source for the shared
dict shape). cmd_status selects the first tier whose counts_source != 'none'
(same order/conditions) and renders once. Rendered output unchanged. Adds
tests/test_cli/test_status_fallback.py covering the dict shape and the RO
and FTS tiers without spawning an owner. Pure readability + tests.
@joy-software joy-software merged commit 1582032 into develop Jun 7, 2026
8 checks passed
@joy-software joy-software deleted the refactor/extract-cmd-status-v2 branch June 7, 2026 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant