Skip to main content

Module locking

Module locking 

Source
Expand description

Locking an open changeset for a publish or discard, and discarding it.

Structs§

ChangedSinceReview
The staged changes changed after the revision the user based a publish or discard on. Nothing was written.

Enums§

DiscardOutcome
What discarding a whole changeset did.
DiscardRejection
Why a discard was refused. Nothing was dropped.
LockRejection 🔒
Why a publish or discard couldn’t act on the changeset.

Functions§

discard
Drops every staged change of an open changeset. With reviewed_revision, refuses if the changeset is at another revision, so that changes staged after the user looked are not dropped unseen.
discard_entities
Drops the entities from an open changeset, so the user sees them live again, classifies the risk of the rest again and returns the entities it dropped. Entities the changeset doesn’t have are skipped. Refuses like discard, and if the rest would break rules of publishing the whole changeset didn’t.
lock_open_changeset 🔒
Locks the changeset until the transaction ends and checks that it is open and, with reviewed_revision, still at that revision.