MishkaCmsCore.Activity.Sources.PaperTrail (Mishka CMS Core v0.0.1)

Copy Markdown View Source

Activity source backed by AshPaperTrail-versioned resources in the MishkaCmsCore.Runtime domain. Auto-discovers any resource that ships with AshPaperTrail.Resource — no per-resource configuration.

Scope keys read

  • :current_user — used to derive master vs tenant subscription topics. Tenants see only their site_id.
  • :resources — optional list of modules to restrict to (e.g. on the Component admin page, pass [MishkaCmsCore.Runtime.Component]).

See MishkaCmsCore.Activity.Behaviours.Source for the behaviour contract.

Summary

Functions

Every paper-trailed resource auto-discovered across all configured domains.

Build an entry map from a unified MishkaCmsCore.Activity.Query SQL row (the DB-side merge path), reusing the same label/severity/badge/message derivation as the live and in-memory paths.

Functions

discovered_modules()

Every paper-trailed resource auto-discovered across all configured domains.

entry_from_row(row)

Build an entry map from a unified MishkaCmsCore.Activity.Query SQL row (the DB-side merge path), reusing the same label/severity/badge/message derivation as the live and in-memory paths.