summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2026-07-08 16:23:01 +0200
committererdgeist <erdgeist@erdgeist.org>2026-07-08 16:23:01 +0200
commitc6bf63a82007c275d13e9e9e0857434b3b7890c0 (patch)
tree21d71937172d756f9af4211e1359647f63a004c5 /app/views
parenta006440f59bf99380e179cc2963cb98d4d894d3a (diff)
Fix tests for the new autosave routing
Route Save and autosave through the new Node methods update now promotes the current autosave into the draft via save_draft! rather than writing submitted params directly; autosave gets its own PUT member route so PATCH update can mean "deliberate save" specifically, matching every other custom action on this resource. Both now require the lock to already be held rather than acquiring it themselves, which is a deliberate narrowing: through the real UI this is always true, since neither can fire before edit has loaded. Two existing tests called update directly with no prior edit, which the old code tolerated by acquiring the lock as a side effect; updated to call edit first instead of loosening the guarantee back open. NodesController#edit itself is unchanged and still calls the old find_or_create_draft, so drafts are still created eagerly on entering edit for now -- switching that over is the next step, not this one.
Diffstat (limited to 'app/views')
0 files changed, 0 insertions, 0 deletions