Expand description
The pages and entities an agent changeset changes, with their staged snapshots.
Structs§
- Agent
Changeset Entity - One entity of a changeset with its staged state. Its state when first staged, which only
publishing and the review need, is read with
get_bases. - Agent
Changeset đź”’Entity Row - Changeset
Entity Summary - One entity of a changeset, as listings and expiry warnings describe it.
- NewStaged
Entity - An entity a changeset stages for the first time; see
insert. - Restaged
Entity - A new staged state of an entity the changeset already has; see
restage.
Enums§
- Agent
Changeset Entity Operation - Risk
Reason - Why a staged change needs the user’s confirmation before it is published: a rule it breaks, with the facts the rule found. It belongs to the entity the change is to, so it doesn’t name that entity again.
Functions§
- delete
- Removes the entities from the changeset.
- get_
bases - The live state each of the given entities had when the changeset first staged it, by key; creates and entities the changeset doesn’t have are left out.
- get_
by_ changeset_ id - All staged rows of the changeset, oldest first.
- get_
by_ keys - The changeset’s rows for the given entities; entities it doesn’t have are left out.
- get_one
- The changeset’s row for the entity;
Noneif it doesn’t stage it. Seeget_by_keys. - get_
operation - What publishing the changeset would do to the entity;
Noneif the changeset doesn’t stage it. - get_
summaries_ by_ changeset_ ids - Every entity of the changesets as listings describe it, with the id of its changeset, oldest first.
- insert
- Adds the entities to the changeset, written at
revision. Risk reasons are left toset_risk_reasons. - restage
- Replaces the staged state of entities the changeset has, written at
revision. Each row keeps its base, the live state its first stage built on. Risk reasons are left toset_risk_reasons. - set_
risk_ reasons - Replaces the risk reasons of staged entities, leaving their staged state and revision as they are.