wikidb.tracker.delete_issue

wikidb.tracker

delete_issue(issues_ctx, comments_ctx, key) -> plan, err

Delete an issue with its comment thread and history

The ties are untied first, and each untie is logged on the issue that survives it. The comments go next, and the issue goes last. A delete that stops part way leaves the issue in place, so running it again finishes the work.

Deleting an epic unties its issues, where turning one back into a plain issue is refused: a delete has reported everything it touches beforehand, and a field write reports nothing. The number is never reused, so a #42 in an old commit message never comes to mean another issue.