Expand description
Locking an open changeset for a publish or discard, and discarding it.
Structs§
- Changed
Since Review - The staged changes changed after the revision the user based a publish or discard on. Nothing was written.
Enums§
- Discard
Outcome - What discarding a whole changeset did.
- Discard
Rejection - Why a discard was refused. Nothing was dropped.
- Lock
Rejection 🔒 - 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.