Expand description
Change orders: the only way to release revisions.
submit all approve
draft ───────────▶ in_review ───────────▶ released
▲ ◀─────────── │
│ withdraw │ any reject
│ ▼
└──── reopen ─── rejected
draft/rejected ── cancel ──▶ cancelledWhile a change is in review, its revisions are in_review (frozen). On
approval they become released; on rejection or withdrawal they return
to in_work.
Structs§
- Change
Input - SignOff
- How a reviewer signs off a decision (#152 step 4).
Functions§
- add_
action - Adds an action line to a draft change: the released revision is obsoleted
(
obsolete) or obsoleted and its item declared superseded bysuccessor_number(supersede) when the change is released. Allowed in every group; groups withobsolete_requires_changedemand it. - add_
dependencies - Adds the in-work revisions of all unreleased dependencies – and, level by level, their own unreleased dependencies – to a draft change, in one transaction. Returns the labels of the added revisions.
- add_
item - Adds an in-work revision to a draft change.
- add_
reviewer - Assigns a reviewer. Authors cannot review their own change (four-eyes principle).
- cancel
- Cancels a draft or rejected change.
- create
- Creates a draft change.
- drafts
- Draft changes the actor may see (targets for “add revision to change”).
- earlier_
rounds - The reviews of the earlier rounds, newest round first.
- for_
revision - Changes the actor may see that reference a revision, plus the number of those it may not see (“part of N change orders you cannot see”).
- get
- A change the actor may see; hidden changes answer like missing ones.
- get_
by_ number - A change by number, if the actor may see it.
- impact
- Impact analysis of a change the actor may see: the dependents of its revisions (hidden ones dropped and counted).
- items
- The affected revisions of a change. Revisions of items the actor may not
read are placeholder rows (
restricted, no identity). - list
- Change orders the actor may see (see
access::change_visible); the total counts the same rows. - may_
stand_ in - For pages: whether the actor may withdraw, reopen, cancel or take over the change in place of its deactivated author.
- open_by
- Open changes authored by the actor.
- pending_
reviews - Changes in review that wait for a decision of the actor (only those it can still see completely).
- readiness
- The release readiness of a change (see
services::readiness). - remove_
item - Removes a revision from a draft change.
- remove_
reviewer - Removes a reviewer from a draft change.
- reopen
- Turns a rejected change back into a draft so it can be fixed and resubmitted.
- replace_
reviewer - Replaces a reviewer who has not decided yet while the change is in review (typically one who is absent: deactivated, demoted or blind to an item). The other decisions are kept.
- review
- Records the decision of a reviewer and finishes the change when possible.
- review_
round - The current review round (1 for a change that was never sent back).
- reviews
- The reviews of the current round. A pending reviewer who can no longer
decide (deactivated, below the editor role, blind to an affected item) is
flagged in
absent. - status_
of - submit
- Submits a draft change for review and freezes its revisions.
- take_
over - Takes over a draft or rejected change of a deactivated author: the actor becomes its author and can edit, submit or cancel it (issue #173). It frees the revisions an abandoned change holds without an administrator.
- update
- Changes title, description and priority of a change.
- withdraw
- Pulls a change back from review into draft.