AshVersioned. Transformers. WireActions
(ash_versioned v0.2.0)
Copy Markdown
Wires up the actions and overrides that make versioning work.
- Defines the create action
__ash_versioned_reinsert__, the update action__ash_versioned_mark_stale__, the history read action, and the read action__ash_versioned_read__used by relationships to this resource. - Adds
AshVersioned.Resource.ManualIncrementasmanualon every user update action, except those inexclude_update_actions. - Ensures that every create action applies actor attribution.
- Ensures that every create action accepts the identity attribute when the resource
identity is
origin: :accepted. - When the resource declares
archive, every destroy action is markedsoft?: true, and may create a default destroy action if none are defined.
Note that update actions with manual implementations will be rejected; this is not
currently a supported workflow.
Summary
Functions
Callback implementation for Spark.Dsl.Transformer.after_compile?/0.
Callback implementation for Spark.Dsl.Transformer.before?/1.
The name of the generated action that flips a row from latest to stale.
The name of the generated :create action AshVersioned.Resource.ManualIncrement
reinserts through.
Functions
Callback implementation for Spark.Dsl.Transformer.after_compile?/0.
Callback implementation for Spark.Dsl.Transformer.before?/1.
The name of the generated action that flips a row from latest to stale.
The name of the generated :create action AshVersioned.Resource.ManualIncrement
reinserts through.