Files
planka/server/api/hooks/query-methods/models
Daniel Hiller 2d289cd3d5 fix: Make endless list pagination deterministic
The filtered branch of `getByEndlessListId` applied `LIMIT` without an
`ORDER BY`, so Postgres was free to hand back any matching rows. With a
search over 64 cards the first page returned the oldest ones and a full
cursor walk reached 60 of them across 149 rows — cards both skipped and
repeated. The query now orders the way the cursor reads it.

The cursor itself is validated as ISO 8601, which admits forms Postgres
rejects as a timestamp (`2026`, `2026-W35-3`, a comma as the decimal
separator), each of them a 500 from the adapter. It is normalized before
the query, and stays a string because the equality half of the cursor
reads a `Date` as an empty constraint.
2026-08-26 09:23:01 +02:00
..
2025-05-22 23:14:46 +02:00
2025-11-27 19:09:10 +01:00
2025-11-27 19:09:10 +01:00
2025-05-10 02:09:06 +02:00
2025-05-10 02:09:06 +02:00
2025-05-10 02:09:06 +02:00
2025-05-10 02:09:06 +02:00
2025-05-10 02:09:06 +02:00
2025-05-10 02:09:06 +02:00
2025-08-21 15:10:02 +02:00
2025-05-10 02:09:06 +02:00
2025-05-10 02:09:06 +02:00
2025-05-10 02:09:06 +02:00
2025-11-27 19:09:10 +01:00
2025-05-10 02:09:06 +02:00
2025-05-10 02:09:06 +02:00
2025-05-10 02:09:06 +02:00
2025-08-23 00:03:20 +02:00
2025-07-14 14:54:06 +02:00
2025-05-10 02:09:06 +02:00
2025-11-27 19:09:10 +01:00