Remove implicit order when filtering by closed cards

We set the order in the dedicated column controllers and we don't want this in place when using composable filters.

Also, this raises an error with the MySQL move when combined with assignees. Because we inject a .distinct there,
that messes up with the query select, resulting in having to add a redundant select to the closed sorting scope, so that
the closure.created_at is not lost.
This commit is contained in:
Jorge Manrubia
2025-11-18 11:36:47 +01:00
parent 38bb47a883
commit 793aace69a
+1 -1
View File
@@ -26,7 +26,7 @@ class Card < ApplicationRecord
case index
when "stalled" then stalled
when "postponing_soon" then postponing_soon
when "closed" then closed.recently_closed_first
when "closed" then closed
when "not_now" then postponed.latest
when "golden" then golden
when "draft" then drafted