Skip to content

Dismiss and take back an Inbox row from the CLI #1191

Closed

Description

@JacobStephens2

Parent

#919

What to build

thirdshift dismiss <command> [--undo] [--json] gives a row in Needs you or Ready for review a Dismissal, or takes one back (Spec Q1.2, Q1.4, Q2.2, Q2.6, Q2.7). It names a Command as stop and show do. It acts on the whole row the Command is in, one Command per call, and asks for no reason. Any row in either group can be dismissed, live ones included.

The dismissal is kept beside the Command record, as a Stop request is. It says:

  • who made it, and when;
  • whether it came from the CLI or the Console;
  • which of the record's rows it covers, since a dispatched Spec run or Ticket run lives in its Pickup run's or Architect run's record;
  • the kind of row it covered.

The row leaves its group and goes where it would be without the problem: Working or Landing if it's live, otherwise Done, Resolved or History. It says "dismissed by" and who, and Resolved holds it for inbox.days after the dismissal (#1190).

Dismissing a row that stands for many failures with the same cause dismisses every Command it stands for. A later failure with that cause starts a row of one.

Taking a dismissal back removes it, and the row goes where the rules put it. The Activity log records both, naming the Unix user and the CLI.

A dismissal changes nothing else. The Command keeps running, and its Ticket runs, issue, labels, Claim and pull request stay as they are. Nothing is written to GitHub.

Acceptance criteria

  • dismiss accepts repo#number, an Issue URL, a Pass's kind-stamp and a record's path, as stop does.
  • A dismissed ended row in Needs you leaves it, says who dismissed it, and lands in Done, Resolved or History.
  • A dismissed live Silent or Slow row moves to Working or Landing, still showing its health line, and its Ticket run keeps running.
  • A dismissed row in Ready for review leaves it the same way.
  • Dismissing a collapsed Failed row dismisses every Command it stands for, and a later failure with the same cause makes a row of one.
  • --undo takes the dismissal back wherever the row now is.
  • dismiss refuses, saying why, each of these:
    • a row outside Needs you and Ready for review;
    • a row with no Command record;
    • --undo on a row that isn't dismissed.
  • The Activity log has a line for each dismissal and each one taken back, naming the Unix user and the CLI.
  • status --json gives each row's dismissal: who, when, from where, and the kind it covers. dismiss --json reports what it did.
  • Nothing about the Command, its issue, labels, Claim or pull request changes, and no gh call is made.
  • Tested through the thirdshift binary.
  • The hand-written site pages and the domain-to-code index say what changed.

Blocked by

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ready-for-agent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions