Skip to main content

Module agent_changeset_entities

Module agent_changeset_entities 

Source
Expand description

The pages and entities an agent changeset changes, with their staged snapshots.

Structs§

AgentChangesetEntity
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.
AgentChangesetEntityRow đź”’
ChangesetEntitySummary
One entity of a changeset, as listings and expiry warnings describe it.
NewStagedEntity
An entity a changeset stages for the first time; see insert.
RestagedEntity
A new staged state of an entity the changeset already has; see restage.

Enums§

AgentChangesetEntityOperation
RiskReason
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; None if it doesn’t stage it. See get_by_keys.
get_operation
What publishing the changeset would do to the entity; None if 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 to set_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 to set_risk_reasons.
set_risk_reasons
Replaces the risk reasons of staged entities, leaving their staged state and revision as they are.