AshVersioned.Transformers.WireActions (ash_versioned v0.1.0)

Copy Markdown

Wires up the actions and overrides that make versioning work.

  • Defines create action version_reinsert and update action version_mark_stale, and the history read action.
  • Adds AshVersioned.Resource.ManualIncrement as manual on every user update action, except those in exclude_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 marked soft?: 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.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

after_compile?()

Callback implementation for Spark.Dsl.Transformer.after_compile?/0.

before?(_)

Callback implementation for Spark.Dsl.Transformer.before?/1.

mark_stale_action_name()

The name of the generated action that flips a row from latest to stale.

reinsert_action_name()

The name of the generated :create action AshVersioned.Resource.ManualIncrement reinserts through.