Skip to content

SRVKP-6638: PipelineRuns List page doesn't fetch next page data on scroll #161

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

lokanandaprabhu
Copy link
Member

Fixes:
https://issues.redhat.com/browse/SRVKP-6638

Description:
VirtualizedTable which is exposed to dynamic plugin is missing onRowsRendered prop which is available in VirtualTableBody of PatternFly.

Created https://issues.redhat.com/browse/OCPBUGS-43538 ticket for that.

Once this ticket is closed, instead of the solution provided in this PR we have to use onRowsRendered prop in VirtualizedTable to call nextPageToken.

Demo:
----PipelineRun list page---

https://drive.google.com/file/d/1HO6V5AnMSRqVgTTf1hAIT-COVCH2Q701/view?usp=drive_link


----TaskRun list page---

https://drive.google.com/file/d/1FlOn6Zp3aEKxFlAmivy1IiFRWUUYrPyk/view?usp=drive_link

@openshift-ci-robot
Copy link
Collaborator

openshift-ci-robot commented Oct 21, 2024

@lokanandaprabhu: This pull request references SRVKP-6638 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.18.0" version, but no target version was set.

In response to this:

Fixes:
https://issues.redhat.com/browse/SRVKP-6638

Description:
VirtualizedTable which is exposed to dynamic plugin is missing onRowsRendered prop which is available in VirtualTableBody of PatternFly.

Created https://issues.redhat.com/browse/OCPBUGS-43538 ticket for that.

Once this ticket is closed, instead of the solution provided in this PR we have to use onRowsRendered prop in VirtualizedTable to call nextPageToken.

Demo:
----PipelineRun list page---

https://drive.google.com/file/d/1HO6V5AnMSRqVgTTf1hAIT-COVCH2Q701/view?usp=drive_link


----TaskRun list page---

https://drive.google.com/file/d/1FlOn6Zp3aEKxFlAmivy1IiFRWUUYrPyk/view?usp=drive_link

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.

Copy link
Contributor

openshift-ci bot commented Oct 21, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: lokanandaprabhu

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:

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

const [data, filteredData, onFilterChange] = useListPageFilter(
pipelineRuns,
filters,
);

// Once OCPBUGS-43538 ticket is closed, use onRowsRendered prop in VirtualizedTable for load more on scroll
React.useEffect(() => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we create a custom hook for it and use it in both the PLR and TR list pages?

Copy link
Member

@vikram-raj vikram-raj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@openshift-ci openshift-ci bot added the lgtm label Oct 24, 2024
@openshift-merge-bot openshift-merge-bot bot merged commit 14b0032 into openshift-pipelines:main Oct 24, 2024
5 checks passed
@vikram-raj
Copy link
Member

/cherry-pick release-v1.16.x

@openshift-cherrypick-robot

@vikram-raj: new pull request created: #166

In response to this:

/cherry-pick release-v1.16.x

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.

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.

4 participants