Cancelling a run moved it and the runs it called to cancelled and wrote nothing to either trail, so a stopped run could not say when it stopped or who asked. The stop now returns the runs it stopped and records one cancel entry on each, in the same transaction, naming the principal that asked. The entry is a step named cancel with the caller's identity, so the run detail shows it with the rest of the trail.
10 lines
406 B
SQL
10 lines
406 B
SQL
-- +goose Up
|
|
-- One approval can cover a sequence of actions, approved in one act. The
|
|
-- request's own action columns describe the first action; actions lists all of
|
|
-- them in the order they run, each with the decision and digest that bind its
|
|
-- approval.
|
|
ALTER TABLE approvals.requests ADD COLUMN actions jsonb NOT NULL DEFAULT '[]';
|
|
|
|
-- +goose Down
|
|
ALTER TABLE approvals.requests DROP COLUMN actions;
|