Skip to main content

Module edits

Module edits 

Expand description

When a generic field edit asks for confirmation.

Every door decides it the same way, from the edit alone: no app code is needed to read a field edit. Removing an item of a collection asks, as a delete verb does, unless the record publishes that collection’s removals as quiet. Any edit of a field the record publishes as guarded asks: one whose change can weaken the person’s security or expose them. A field that weakens only one way (Weaker) asks only for a change that way. Otherwise setting, splicing, adding, upserting an item by its key, moving and an outbox’s settle and forget ask nothing.

Structs§

WeakeningField
A field that weakens one way, read back from its weakening_tag (without the prefix). JSON text holds no raw tab, so tabs part it.

Enums§

EditStep
One step of a field edit’s path, as the decision reads it.
Weaker
Which way a field’s value weakens the person’s security.

Constants§

FIELD_EDIT_TAG
The tag a published field edit carries.
GUARDED_FIELD_TAG
The tag prefix naming one field, by its dotted path from the edit’s root (* for an item), any edit at or below which asks.
QUIET_REMOVAL_TAG
The tag prefix naming one collection, by its dotted path from the edit’s root (* for an item), whose removals ask nothing.
WEAKENING_FIELD_TAG
The tag prefix of a field that weakens security only one way (weakening_tag): an edit making it weaker asks, any other does not.

Functions§

dotted
path as the dotted pattern QUIET_REMOVAL_TAG names collections by.
field_edit_asks
Whether the field edit op (its JSON name) at path asks for confirmation before it runs, where quiet names the collections whose removals ask nothing and guarded the fields whose every edit asks.
guarded_at
Whether path is one of the guarded fields or lies below one.
weakening_edit
Whether the field edit op at path, setting value (JSON text) when it is a set, can weaken one of fields: a set of the field itself to a weaker value, and any other edit at or below it, which is not read.
weakening_tag
The WEAKENING_FIELD_TAG publishing that the field at path (dotted, as dotted spells it) weakens weaker’s way and holds now (JSON text), when known.