Skip to content

EPMDEDP-16623: fix: Resolve pagination failure in Tekton Results query#202

Merged
SergK merged 1 commit into
mainfrom
fix-pipelinerunlist
Apr 4, 2026
Merged

EPMDEDP-16623: fix: Resolve pagination failure in Tekton Results query#202
SergK merged 1 commit into
mainfrom
fix-pipelinerunlist

Conversation

@SergK
Copy link
Copy Markdown
Member

@SergK SergK commented Apr 4, 2026

The getPipelineRunResults endpoint uses order_by: summary.end_time desc for sorting. However, RecordSummary.EndTime is NULL for many results due to a watcher bug in tektoncd/results (tektoncd/results#1285). Ordering by a NULL field corrupts the pagination cursor, causing page 2+ to return empty results.

Changed to order_by: create_time desc which is:

  • Always populated (never NULL)
  • Semantically equivalent for recency-based sorting
  • The client hook already re-sorts by creationTimestamp anyway

This unblocks the "Load more history" pagination control and allows users to view all 100+ PipelineRuns in the history, not just the initial 50.

See: tektoncd/results#1285

@SergK SergK requested review from a team and callmevladik as code owners April 4, 2026 12:14
…lineRun query

The getPipelineRunResults endpoint uses `order_by: summary.end_time desc`
for sorting. However, RecordSummary.EndTime is NULL for many results due
to a watcher bug in tektoncd/results (tektoncd/results#1285). Ordering by
a NULL field corrupts the pagination cursor, causing page 2+ to return
empty results.

Changed to `order_by: create_time desc` which is:
- Always populated (never NULL)
- Semantically equivalent for recency-based sorting
- The client hook already re-sorts by creationTimestamp anyway

This unblocks the "Load more history" pagination control and allows users
to view all 100+ PipelineRuns in the history, not just the initial 50.

See: tektoncd/results#1285
Signed-off-by: Sergiy Kulanov <sergiy_kulanov@epam.com>
@SergK SergK force-pushed the fix-pipelinerunlist branch from 028a942 to b7580ff Compare April 4, 2026 12:24
@SergK SergK merged commit 4409ea5 into main Apr 4, 2026
3 checks passed
@SergK SergK deleted the fix-pipelinerunlist branch April 4, 2026 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant