fix: preserve Ticket lane order across pages

This commit is contained in:
2026-08-18 07:50:42 +09:00
parent 6ca5dfbe11
commit a6f3e30652
2 changed files with 54 additions and 7 deletions
+5 -2
View File
@@ -782,7 +782,10 @@ impl TicketAuthority for SqliteWorkspaceAuthority {
})
})
.collect::<Result<Vec<_>>>()?;
let fingerprint = format!("ticket-summary:v1:states={}", states.join(","));
let fingerprint = format!(
"ticket-summary:v2:sort=priority:states={}",
states.join(",")
);
let after = request
.cursor
.as_deref()
@@ -809,7 +812,7 @@ impl TicketAuthority for SqliteWorkspaceAuthority {
returned: items.len(),
has_more: page.has_more,
next_cursor,
sort: "updated_desc".to_string(),
sort: "priority".to_string(),
source_limit: None,
source_truncated: false,
},