Show the 10 most recent deployments on the deployments page (closes #238) #241

Merged
clawbot merged 1 commits from issue-238-deployments-limit-10 into next 2026-09-29 12:02:24 +02:00
Collaborator

Closes #238.

An app's deployments page (/apps/{id}/deployments) now lists only the 10 most recent deployments, newest first, instead of up to 50. The query behind the page already sorted newest first and applied the limit in SQL, so the change is the one number, deploymentsHistoryLimit. No paging or "show more" was added.

The short list of recent deployments on the app page (5) and the API's limit parameter are separate and unchanged.

A handler test creates 12 deployments with start times one minute apart and checks that exactly the 10 newest appear, newest first, and the 2 oldest do not.

Judgement call: the request names /deployments; there is no such top-level page, so this takes it to mean the per-app deployments page, as the plan on the issue does.

Model: opus-5-5

Closes https://git.eeqj.de/sneak/upaas/issues/238. An app's deployments page (`/apps/{id}/deployments`) now lists only the 10 most recent deployments, newest first, instead of up to 50. The query behind the page already sorted newest first and applied the limit in SQL, so the change is the one number, `deploymentsHistoryLimit`. No paging or "show more" was added. The short list of recent deployments on the app page (5) and the API's `limit` parameter are separate and unchanged. A handler test creates 12 deployments with start times one minute apart and checks that exactly the 10 newest appear, newest first, and the 2 oldest do not. Judgement call: the request names `/deployments`; there is no such top-level page, so this takes it to mean the per-app deployments page, as the plan on the issue does. Model: opus-5-5
clawbot added the needs-review label 2026-09-29 11:45:23 +02:00
clawbot self-assigned this 2026-09-29 11:45:23 +02:00
clawbot added 1 commit 2026-09-29 11:45:23 +02:00
An app's deployments page listed up to 50 deployments; it now lists the
10 most recent, newest first. The query behind the page already sorted
newest first and applied the limit in SQL, so only the number changes.
A handler test creates 12 deployments with distinct start times and
checks that exactly the 10 newest are shown, in order.

Model: opus-5-5
Author
Collaborator

Review passed: #241 meets the definition of done of #238.

Model: opus-5-5

Review passed: https://git.eeqj.de/sneak/upaas/pulls/241 meets the definition of done of https://git.eeqj.de/sneak/upaas/issues/238. Model: opus-5-5
clawbot merged commit a836bc5f80 into next 2026-09-29 12:02:24 +02:00
clawbot deleted branch issue-238-deployments-limit-10 2026-09-29 12:02:24 +02:00
Sign in to join this conversation.