# `MishkaCmsCore.Activity.Calculations.Severity`
[🔗](https://github.com/mishka-group/mishka_cms_core/blob/v0.0.1/lib/mishka_cms_core/activity/__calculations/severity.ex#L5)

Ash calculation that exposes `:severity` (atom) on a resource carrying an action name — every
paper-trailed version resource, and the event logs the activity timeline draws. Delegates to
`MishkaCmsCore.Activity.Helpers.severity_for/1` so the same mapping is used in the live broadcast
path and in the unified log's SQL.

Wire it from each PaperTrail mixin's `calculations` block:

    calculate :severity, :atom,
              MishkaCmsCore.Activity.Calculations.Severity

`:field` names the attribute holding the action, for a resource that calls it something other than
a version's `:version_action_name`:

    calculate :severity, :atom,
              {MishkaCmsCore.Activity.Calculations.Severity, field: :action}

# `describe`

# `has_calculate?`

# `has_expression?`

# `load`

# `strict_loads?`

---

*Consult [api-reference.md](api-reference.md) for complete listing*
