summaryrefslogtreecommitdiff
path: root/app/models/node_action.rb
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2026-07-23 12:24:52 +0200
committererdgeist <erdgeist@erdgeist.org>2026-07-23 12:24:52 +0200
commit932d4a4be40587fa6d489eca16a1ef6d6f2936d1 (patch)
treea7512889db54347845ce8f72e5a2155d917b4500 /app/models/node_action.rb
parent6ef98ad444631b1d5ba67bb16aaaa2afdfa53ae0 (diff)
Witness asset uploads and out-of-band attaches in the action log
Diffstat (limited to 'app/models/node_action.rb')
-rw-r--r--app/models/node_action.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/app/models/node_action.rb b/app/models/node_action.rb
index 9ed0b628..aa52f489 100644
--- a/app/models/node_action.rb
+++ b/app/models/node_action.rb
@@ -69,6 +69,17 @@ class NodeAction < ApplicationRecord
69 # "path" -- final path, flat string (create-symmetric) 69 # "path" -- final path, flat string (create-symmetric)
70 # "destroyed_descendants" -- integer, only when positive; one entry 70 # "destroyed_descendants" -- integer, only when positive; one entry
71 # at the root, per the subtree rule. 71 # at the root, per the subtree rule.
72 #
73 # "asset_create" (witnessed upload; participants: the asset alone):
74 # "asset_name", "content_type", "path" -- flat strings
75 #
76 # "asset_attach" (out-of-band attach via Node#attach_asset!; written
77 # only when at least one new join was created, per the tandem rule --
78 # in-editor curation stays draft-scoped and surfaces at publish.
79 # participants: the node (primary) and the asset):
80 # "asset_name", "path" -- flat strings
81 # "headline" -- boolean, only when set by this attach
82 #
72 # "asset_destroy" (witnessed asset deletion; always written, even for 83 # "asset_destroy" (witnessed asset deletion; always written, even for
73 # unattached assets -- the files were publicly reachable; node column 84 # unattached assets -- the files were publicly reachable; node column
74 # nil, subjects via participants: the asset plus every then-attached 85 # nil, subjects via participants: the asset plus every then-attached