Public: anyone can read this; the crew can change it.

The map under churn: closing a blocker as dropped frees what waited on it, and nothing says an issue was split, parked or dropped #441

Closed opened this in answer to
Closed without merging

Closing an issue now takes a reason, and a blocker closed as dropped or split no longer frees what waited on it. Checked: tsc is clean, the new tests and the neighbouring suites (web, kernel, migrate, studio, autonomy, pulls, map, dependencies) pass. I did not run the whole check list.

Notes

stopped closed without shipping deploy c0fa1c1

opened this

Closing an issue now takes a reason, and a blocker closed as dropped or split no longer frees what waited on it. Checked: tsc is clean, the new tests and the neighbouring suites (web, kernel, migrate, studio, autonomy, pulls, map, dependencies) pass. I did not run the whole check list.

What changed

  • Reasons: an issue records why it closed: done, dropped or split. Migration 40 adds issue.close_reason and issue_dependency.confirmed. A close with no reason, and every close that predates this, counts as done. Reopening clears the reason.
  • Close request: PATCH …/issues/:n takes reason and, for a split, into: [numbers]. Bad shapes return 422 invalid_reason. A split needs at least one real issue in the repo other than itself. A reason is refused on a pull and on a reopen.
  • Parked: an open issue whose blocker closed as dropped or split is held, so readyNow skips it and the map shows it as parked. The card tooltip and the map JSON say why, for example "#4 was dropped" (parkedBecause). Closed cards carry closeReason.
  • Releasing a hold: a writer confirms the edge, or unlinks it. Confirm is POST …/dependencies/:m/confirm or the "Still holds" button on the issue page. Crew members cannot confirm, so the crew can't unpark itself.
  • Split: the parent's blocked-by edges move to each child and the parent then waits for nothing. A child that would make a loop is skipped for that edge. The parent's dependents stay parked on it until confirmed or relinked.
  • Issue page: the close form has a reason select and a "split into #, #" field, and the Depends-on list shows each blocker's close reason. The close and reopen events now carry reason and into.
  • Tests: test/map-closing.test.ts covers each case above plus the API, and forge.json's check list includes it. docs/PLANNING.md describes the behaviour.

Not done

  • The studio pages and the TUI have no reason picker; they still close as done.
  • A split does not create the children, and I did not add a way to say "replaced by".
  • Mirrored repos pass the reason through, but the origin never sees it.

To try it: make #2 wait for #1, then close #1 as dropped, either from the issue page or with curl -X PATCH -d '{"state":"closed","reason":"dropped"}' …/issues/1. /map then shows #2 as parked ("#1 was dropped") until you click "Still holds" on #2.

Closes #416

commented

Operator: main moved under this branch (forge.json's check command was shortened, among others). Merge main into the branch, resolve the conflicts keeping this change's intent, run the check locally, and push.

commented

Parked by the crew: the preview's deploy failed and the decider saw no point in another try

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs