You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| Move blocker back from `in_review` to an active stage | Dependent re-blocked (status -> `blocked`) |
43
47
| Close already-closed blocker | No-op (idempotent) |
48
+
| Move blocker to `in_review` multiple times | No-op (idempotent) |
44
49
| Dependent is completed/deleted | No status change (already terminal) |
45
50
51
+
> **Note:** The `in_review` stage is treated as non-blocking for **dependency edges only**.
52
+
> Parent/child relationships are not affected by this change — a child item moving to
53
+
> `in_review` does not unblock its parent.
54
+
46
55
## CLI and TUI Parity
47
56
48
57
Both the CLI `close` command (`src/commands/close.ts`) and the TUI close handler (`src/tui/controller.ts`) call `db.update(id, { status: 'completed' })`, which triggers the same reconciliation path. There is no separate unblock logic in either interface — all unblocking is handled by the shared database layer.
@@ -53,5 +62,5 @@ The `wl dep add` command (`src/commands/dep.ts`) adds a dependency edge and then
53
62
54
63
## Test Coverage
55
64
56
-
-**Unit tests**: `tests/database.test.ts` — `dependency edges` describe block contains tests for single-blocker unblock, multi-blocker scenarios, chain dependencies, delete unblock, reopen re-block, idempotence, and more.
57
-
-**CLI integration tests**: `tests/cli/issue-management.test.ts` — tests for `close` and `dep` commands verifying end-to-end unblock behaviour through the CLI.
65
+
-**Unit tests**: `tests/database.test.ts` — `dependency edges` describe block contains tests for single-blocker unblock, multi-blocker scenarios, chain dependencies, delete unblock, reopen re-block, idempotence, `in_review` stage unblocking (single blocker, partial multi-blocker, all blockers, mixed in_review/completed, idempotence, re-block on stage revert, multiple dependents), and more.
66
+
-**CLI integration tests**: `tests/cli/issue-management.test.ts` — tests for `close` and `dep` commands verifying end-to-end unblock behaviour through the CLI, including `in_review` stage unblocking (single blocker → in_review, partial multi-blocker, all blockers → in_review).
0 commit comments