add a lot more paste entries to the dev server to test paging to make sure it behaves properly when there are many pages #156

Closed
opened 2026-09-10 13:47:45 +00:00 by poslop · 3 comments
Owner
No description provided.
fen added spent time 5 seconds 2026-09-10 13:55:46 +00:00
fen added the In Progress label 2026-09-10 13:55:46 +00:00
fen added spent time 4 minutes 2026-09-10 13:57:36 +00:00
Collaborator

Seeded 500 additional test pastes on dev (https://palette-dev.archfox.org) to exercise paging with many pages. Prod untouched.

What was seeded

  • 500 pastes via POST /api/pastes (0 failures, ~8.5 min at the 1/s rate limit): varied titles (seed-000 ...), languages, and sizes (tiny/small/medium/large, up to ~100 KB each).

API paging verification (GET /api/public)

  • Total entries: 583 (82 pre-existing + 501 incl. 1 probe).
  • Walked all pages at limit=25: 24 pages, 583 rows total, no dupes, no gaps.
  • Sort: created_at descending verified across every page.
  • limit=10 walk also complete (583/583). Beyond-end offset returns 0 items cleanly.
  • Server caps limit at 100 (limit=101 falls back to 25) — matches table.js behavior; client-side search/sort fetch first 100 and filter locally. Note: with 583 entries the search box only matches within the newest 100 — pre-existing limitation of #57 design, not a paging bug.

Headless DOM verification (chromium --dump-dom)

  • /history renders 25 rows (per page), shows "583 total", 25 seed-* rows visible on page 1. Pager is JS-driven; API walk above confirms pages 2+.

No code change or deploy needed — no PR opened. Pods not restarted.

Seeded 500 additional test pastes on **dev** (https://palette-dev.archfox.org) to exercise paging with many pages. Prod untouched. **What was seeded** - 500 pastes via `POST /api/pastes` (0 failures, ~8.5 min at the 1/s rate limit): varied titles (`seed-000 ...`), languages, and sizes (tiny/small/medium/large, up to ~100 KB each). **API paging verification (`GET /api/public`)** - Total entries: **583** (82 pre-existing + 501 incl. 1 probe). - Walked all pages at `limit=25`: 24 pages, 583 rows total, no dupes, no gaps. - Sort: `created_at` descending verified across every page. - `limit=10` walk also complete (583/583). Beyond-end offset returns 0 items cleanly. - Server caps `limit` at 100 (limit=101 falls back to 25) — matches table.js behavior; client-side search/sort fetch first 100 and filter locally. Note: with 583 entries the search box only matches within the newest 100 — pre-existing limitation of #57 design, not a paging bug. **Headless DOM verification (chromium --dump-dom)** - /history renders 25 rows (per page), shows "583 total", 25 `seed-*` rows visible on page 1. Pager is JS-driven; API walk above confirms pages 2+. No code change or deploy needed — no PR opened. Pods not restarted.
fen added spent time 12 minutes 2026-09-10 14:07:52 +00:00
fen removed the In Progress label 2026-09-10 14:07:53 +00:00
Author
Owner
image.png

this looks fine except when in the middle of the pages it probably should only show page option 1 ... 5 6 7 ... 24

currently its showing page 2 as an option to navigate to which doesnt make sense when im currently on page 6

<img width="389" alt="image.png" src="attachments/9ef7d41f-cb75-400d-9283-2ccd1033116d"> this looks fine except when in the middle of the pages it probably should only show page option 1 ... 5 6 7 ... 24 currently its showing page 2 as an option to navigate to which doesnt make sense when im currently on page 6
8.1 KiB
Collaborator

Triage gate test: this issue is not marked needs attention, agent should acknowledge and not spawn anything.

Triage gate test: this issue is not marked needs attention, agent should acknowledge and not spawn anything.
Sign in to join this conversation.
2 Participants
Notifications
Total Time Spent: 17 minutes
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: poslop/palette#156