Skip to content

Conversation

@anwesha-palit-redhat
Copy link
Contributor

PR Description

This PR fixes an issue where scrolling fails to load additional PipelineRun results when the data_source filter is set to archived. The onScroll callback never triggered the next-page request because the Tekton Results client was reading nextPageToken, while the API returns next_page_token. Due to this mismatch, the next-page callback was not created, causing pagination to stop after the first page.

For demonstration purposes, the page_size has been temporarily set to 10 to make pagination behavior easier to observe.


Steps to Reproduce

  1. Open the PipelineRun list page.
  2. Set the data_source filter to archived.
  3. Scroll to the bottom.
  4. No additional results load.

Actual Result

Pagination stops after the first page; scrolling does not fetch more results.


Expected Result

The list should fetch the next page using next_page_token and load results continuously as the user scrolls.


Root Cause

The client expected nextPageToken, but the API provides next_page_token, preventing the next-page fetch logic from initializing.


Fix Implemented

  • Updated pagination logic to use next_page_token from the API response.

Screen Recording Before

issue_9397.mov

Screen Recording After

https://drive.google.com/file/d/1nAAVR7Uu3UaC7ljFKBnJUxqZafCn6YaN/view?usp=sharing


@anwesha-palit-redhat anwesha-palit-redhat changed the title fix: updated field name for capturing next page token in tkr SRVKP-9397: updated field name for capturing next page token in tkr Nov 26, 2025
@openshift-ci-robot
Copy link
Collaborator

openshift-ci-robot commented Nov 26, 2025

@anwesha-palit-redhat: This pull request references SRVKP-9397 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the bug to target the "4.21.0" version, but no target version was set.

In response to this:

PR Description

This PR fixes an issue where scrolling fails to load additional PipelineRun results when the data_source filter is set to archived. The onScroll callback never triggered the next-page request because the Tekton Results client was reading nextPageToken, while the API returns next_page_token. Due to this mismatch, the next-page callback was not created, causing pagination to stop after the first page.

For demonstration purposes, the page_size has been temporarily set to 10 to make pagination behavior easier to observe.


Steps to Reproduce

  1. Open the PipelineRun list page.
  2. Set the data_source filter to archived.
  3. Scroll to the bottom.
  4. No additional results load.

Actual Result

Pagination stops after the first page; scrolling does not fetch more results.


Expected Result

The list should fetch the next page using next_page_token and load results continuously as the user scrolls.


Root Cause

The client expected nextPageToken, but the API provides next_page_token, preventing the next-page fetch logic from initializing.


Fix Implemented

  • Updated pagination logic to use next_page_token from the API response.

Screen Recording Before

issue_9397.mov

Screen Recording After

https://drive.google.com/file/d/1nAAVR7Uu3UaC7ljFKBnJUxqZafCn6YaN/view?usp=sharing


Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@vikram-raj
Copy link
Member

/cc @pratap0007

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Nov 26, 2025

@vikram-raj: GitHub didn't allow me to request PR reviews from the following users: pratap0007.

Note that only openshift-pipelines members and repo collaborators can review this PR, and authors cannot review their own PRs.

In response to this:

/cc @pratap0007

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@anwesha-palit-redhat
Copy link
Contributor Author

/cc @arvindk-softwaredev

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Nov 26, 2025

@anwesha-palit-redhat: GitHub didn't allow me to request PR reviews from the following users: arvindk-softwaredev.

Note that only openshift-pipelines members and repo collaborators can review this PR, and authors cannot review their own PRs.

In response to this:

/cc @arvindk-softwaredev

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Nov 26, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: anwesha-palit-redhat

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [anwesha-palit-redhat]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@arvindk-softwaredev
Copy link

/lgtm

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Nov 26, 2025

@arvindk-softwaredev: changing LGTM is restricted to collaborators

In response to this:

/lgtm

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@pratap0007
Copy link
Contributor

/lgtm

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Nov 27, 2025

@pratap0007: changing LGTM is restricted to collaborators

In response to this:

/lgtm

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@arvindk-softwaredev
Copy link

/lgtm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants