From 180b5feba092db1339f7bb3217e91f0b22239bc5 Mon Sep 17 00:00:00 2001 From: erdgeist Date: Mon, 27 Jul 2026 02:53:21 +0200 Subject: Surface held locks in the dashboard's work-in-progress widget A lock with no draft or autosave behind it was invisible to everyone including its holder, until the next editor collided with it. work_in_progress now admits those nodes, and the widget names the holder rather than the last editor on any locked row. Also flips the ordering to stalest-first, so a backlog reads as a queue rather than a feed, and gives the heading a real total: the count came from the already-limited relation and could never exceed five. --- test/models/node_trash_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/models/node_trash_test.rb') diff --git a/test/models/node_trash_test.rb b/test/models/node_trash_test.rb index 52069d75..3947f20e 100644 --- a/test/models/node_trash_test.rb +++ b/test/models/node_trash_test.rb @@ -161,7 +161,7 @@ class NodeTrashTest < ActiveSupport::TestCase node = create_node_with_published_page node.trash!(@user1) - ids = Node.drafts_and_autosaves.pluck(:id) + ids = Node.work_in_progress.pluck(:id) assert_not_includes ids, Node.trash.id assert_not_includes ids, node.id end -- cgit v1.3