Documentation
¶
Overview ¶
Package invalidparent provides the "admin fix invalid-parent-reference" subcommand, which removes dangling parent references from issues whose parent no longer exists in the database. Each repaired issue becomes a top-level issue and receives an audit comment recording the original parent.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RunInput ¶
type RunInput struct {
// Author is the name recorded on audit comments for each repaired issue.
// The service validates the value; an empty author produces an error.
Author string
// DryRun, when true, identifies affected issues without mutating the
// database. The service receives DryRun=true so no writes occur at any
// layer.
DryRun bool
// JSON enables machine-readable JSON output instead of human-readable text.
JSON bool
// Out receives all command output.
Out io.Writer
// Svc is the service that performs the repair operation. NewCmd sets this
// from the factory's store; tests inject a stub.
Svc service
}
RunInput holds all parameters for the invalid-parent-reference fix logic, decoupled from CLI flag parsing so it can be tested directly.
Click to show internal directories.
Click to hide internal directories.