Eric Traut
bbd0d2b2fb
Fix pagination for unindexed threads sorted by ascending recency ( #61181 )
...
## Why
Listing threads by ascending `recency_at` can omit `next_cursor` when rollout files have not yet been indexed in SQLite, preventing clients from fetching the remaining threads.
## What changed
Scan and index one extra rollout for ascending recency listings when SQLite is available, so the database can detect another page. Trim filesystem results to the requested page size for this sort order.
## Testing
Add a regression test that creates two unindexed rollouts after startup backfill and lists them with a provider filter and a page size of one. Verify both threads are returned in order, with a cursor only on the first page.
GitOrigin-RevId: 09354055b6e60666a493d9411ed3eb9778b73c0a
2026-11-12 21:03:15 +00:00
..
2026-11-10 03:01:14 +00:00
2026-11-10 16:31:52 +00:00
2026-10-22 11:51:23 +00:00
2026-11-06 22:27:47 +00:00
2026-09-23 00:49:19 +00:00
2026-10-26 20:54:35 +00:00
2026-10-27 17:04:16 +00:00
2026-11-06 22:27:47 +00:00
2026-09-21 13:27:39 +00:00
2026-11-03 02:26:29 +00:00
2026-10-19 21:43:19 +00:00
2026-11-05 22:03:29 +00:00
2026-11-05 22:03:29 +00:00
2026-09-23 00:47:07 +00:00
2026-11-10 11:17:06 +00:00
2026-10-29 11:23:51 +00:00
2026-09-29 22:24:09 +00:00
2026-07-09 00:17:38 +00:00
2026-10-01 02:06:05 +00:00
2026-11-06 01:10:49 +00:00
2026-11-02 18:42:19 +00:00
2026-10-14 17:39:43 +00:00
2026-10-06 17:10:19 +00:00
2026-07-08 00:15:49 +00:00
2026-10-05 23:52:06 +00:00
2026-10-26 18:13:00 +00:00
2026-09-10 21:41:39 +00:00
2026-10-29 22:36:06 +00:00
2026-10-06 03:35:55 +00:00
2026-10-21 19:06:57 +00:00
2026-10-26 18:13:00 +00:00
2026-10-06 03:35:55 +00:00
2026-11-06 22:27:47 +00:00
2026-11-11 05:38:52 +00:00
2026-11-05 04:25:19 +00:00
2026-11-11 05:38:52 +00:00
2026-10-17 23:34:04 +00:00
2026-10-09 23:16:46 +00:00
2026-11-11 05:38:52 +00:00
2026-11-03 23:49:01 +00:00
2026-10-01 15:57:03 +00:00
2026-08-13 21:53:52 +00:00
2026-09-30 19:21:02 +00:00
2026-11-11 05:38:52 +00:00
2026-10-26 18:13:00 +00:00
2026-11-11 06:41:15 +00:00
2026-10-19 22:55:42 +00:00
2026-10-08 19:13:52 +00:00
2026-10-08 19:13:52 +00:00
2026-06-27 19:34:10 +00:00
2026-11-07 02:28:22 +00:00
2026-10-08 19:21:57 +00:00
2026-09-17 01:28:24 +00:00
2026-10-29 11:23:51 +00:00
2026-11-11 07:39:04 +00:00
2026-11-10 11:17:06 +00:00
2026-10-26 18:13:00 +00:00
2026-10-23 12:23:10 +00:00
2026-10-28 20:21:30 +00:00
2026-10-20 17:01:52 +00:00
2026-07-08 00:15:49 +00:00
2026-11-10 01:28:45 +00:00
2026-11-02 18:42:19 +00:00
2026-11-07 02:09:31 +00:00
2026-09-10 16:01:02 +00:00
2026-09-16 10:11:26 +00:00
2026-10-27 11:05:48 +00:00
2026-10-23 18:48:10 +00:00
2026-09-08 20:37:30 +00:00
2026-10-23 18:48:10 +00:00
2026-11-12 18:30:45 +00:00
2026-09-27 20:15:23 +00:00
2026-10-23 18:48:10 +00:00
2026-11-05 11:41:09 +00:00
2026-10-14 02:01:49 +00:00
2026-10-23 18:39:28 +00:00
2026-07-15 20:59:21 +00:00
2026-10-29 18:09:55 +00:00
2026-11-03 06:24:24 +00:00
2026-10-29 11:23:51 +00:00
2026-09-02 21:01:04 +00:00
2026-07-23 15:32:36 +00:00
2026-10-07 23:19:26 +00:00
2026-11-12 14:07:50 +00:00
2026-10-29 03:47:52 +00:00
2026-08-20 17:49:35 +00:00
2026-09-09 22:22:08 +00:00
2026-11-04 22:55:22 +00:00
2026-11-04 22:55:22 +00:00
2026-10-29 11:23:51 +00:00
2026-10-28 23:21:04 +00:00
2026-10-29 11:23:51 +00:00
2026-10-23 12:35:58 +00:00
2026-11-10 04:56:49 +00:00
2026-10-06 01:26:11 +00:00
2026-11-02 12:22:22 +00:00
2026-11-06 12:04:44 +00:00
2026-11-06 01:10:49 +00:00
2026-11-10 05:08:19 +00:00
2026-10-02 22:55:08 +00:00
2026-11-07 23:51:58 +00:00
2026-11-06 05:10:44 +00:00
2026-11-02 08:31:14 +00:00
2026-10-20 11:56:17 +00:00
2026-10-28 06:22:58 +00:00
2026-07-22 16:30:12 +00:00
2026-09-11 00:03:40 +00:00
2026-10-26 18:13:00 +00:00
2026-11-05 03:49:13 +00:00
2026-11-06 00:23:38 +00:00
2026-09-28 23:32:45 +00:00
2026-10-08 18:42:58 +00:00
2026-09-17 23:47:06 +00:00
2026-11-05 03:49:13 +00:00
2026-09-17 04:23:45 +00:00
2026-09-25 08:25:37 +00:00
2026-08-12 13:33:01 +00:00
2026-10-27 21:51:50 +00:00
2026-11-10 11:17:06 +00:00
2026-09-14 22:31:32 +00:00
2026-11-07 08:11:37 +00:00
2026-11-07 08:11:37 +00:00
2026-11-07 00:18:36 +00:00
2026-10-30 02:43:02 +00:00
2026-11-11 05:38:52 +00:00
2026-11-07 06:32:12 +00:00
2026-10-08 22:42:12 +00:00
2026-11-11 08:16:52 +00:00
2026-10-01 05:33:36 +00:00
2026-08-20 07:03:02 +00:00
2026-09-14 23:25:09 +00:00
2026-09-08 20:37:30 +00:00
2026-10-28 07:12:32 +00:00
2026-10-14 15:22:02 +00:00
2026-10-09 01:22:30 +00:00
2026-10-26 18:13:00 +00:00
2026-09-29 15:10:17 +00:00
2026-08-20 08:10:08 +00:00
2026-09-09 00:25:02 +00:00
2026-09-10 13:02:57 +00:00
2026-10-06 21:29:35 +00:00
2026-10-26 18:13:00 +00:00
2026-11-10 11:17:06 +00:00
2026-10-28 04:05:31 +00:00
2026-10-01 20:47:05 +00:00
2026-11-02 19:26:15 +00:00
2026-09-02 23:41:14 +00:00
2026-09-08 20:37:30 +00:00
2026-11-10 11:17:06 +00:00
2026-10-23 18:39:28 +00:00
2026-11-10 01:30:08 +00:00
2026-11-12 21:03:15 +00:00
2026-07-22 16:30:12 +00:00
2026-07-23 19:19:35 +00:00
2026-11-10 11:17:06 +00:00
2026-10-01 00:57:29 +00:00
2026-05-12 18:40:53 -07:00
2026-11-06 05:10:44 +00:00
2026-10-09 03:42:19 +00:00
2026-11-11 08:28:25 +00:00
2026-11-02 13:51:49 +00:00
2026-10-30 14:40:32 +00:00
2026-11-09 03:58:05 +00:00
2026-11-05 08:10:44 +00:00
2026-11-10 16:31:52 +00:00
2026-10-30 16:09:46 +00:00
2026-11-10 20:35:28 +00:00
2026-10-26 18:13:00 +00:00
2026-10-26 22:13:14 +00:00
2026-10-29 11:23:51 +00:00
2026-11-11 08:16:52 +00:00
2026-11-11 08:16:52 +00:00
2026-10-27 04:52:09 +00:00
2026-10-28 01:29:34 +00:00
2026-09-23 00:49:19 +00:00
2026-11-11 02:13:43 +00:00
2026-11-10 20:35:28 +00:00
2026-11-10 11:17:06 +00:00
2026-11-10 01:30:08 +00:00
2026-10-10 19:43:24 +00:00
2026-09-08 21:48:53 +00:00
2026-10-26 18:13:00 +00:00
2026-10-29 18:41:17 +00:00
2026-11-03 02:08:56 +00:00
2026-09-24 19:29:53 +00:00
2026-11-06 22:27:47 +00:00