Class ProposedEdit
- Namespace
- IntentSharp.Edits
- Assembly
- IntentSharp.dll
An edit proposed to a document or a compiled mapping: the new content, who wrote it and why, and, once the library has checked it, its Impact. Submit it with SubmitAsync(ProposedEdit, CancellationToken); the library checks it with every validator that handles the document and passes it to the IEditWriter only when it loads.
public sealed class ProposedEdit
- Inheritance
-
objectProposedEdit
- Inherited Members
-
object.Equals(object)object.Equals(object, object)object.GetHashCode()object.GetType()object.ReferenceEquals(object, object)object.ToString()
- Extension Methods
Constructors
- ProposedEdit()
Creates an edit; set Kind, Content and Author, and Document for a document edit.
Properties
- Author
Who wrote the edit, such as Model with the model id as the label. Stored with the new version.
- BasedOn
The running sequence the edit was based on. When set and another version has become running since, the edit is a Conflict and nothing is stored. When null, the library uses the running sequence it checked the edit against, so a document edit is never applied over a version it was not checked against, and a writer receives that sequence here. It stays null for a document that has no running version yet.
- Change
The change in the environment that caused the edit, such as the target schema change a recompiled rule file reflects. Null when the edit was not caused by a change the client found. Trigger stays for a cause described in text only. Informational: a writer may read it, and the library acts on nothing in it.
- Content
The whole new content: a document's full text, or a mapping's serialized form.
- Document
The document a Document edit saves a new version of; null for other kinds. Required for a document edit.
- Impact
What the edit would do, as the validators of its document assessed it: whether it loads, its problems, the items it changes and whether it widens a security item. The library sets it before a writer sees the edit and replaces any value the caller set, so the validators decide it, never the caller. Until then it is an impact that does not load cleanly, which is why ApplyingEditWriter refuses an edit submitted to it directly.
- Kind
What the edit changes.
- MappingKey
The key of the compiled mapping a Mapping edit replaces; null for other kinds.
- Reason
Why the edit was written; null for none. Stored with the new version.
- Trigger
A short description of what caused the edit, such as
"target-change orders-db"; null when it was not caused by a change in the environment. Informational: the library acts on nothing in it.