Skip to content

SRVKP-9626: Migrate to ConsoleDataView for Pipelines and PipelineRuns tab#1011

Merged
openshift-merge-bot[bot] merged 1 commit intoopenshift-pipelines:masterfrom
arvindk-softwaredev:feat/SRVKP-9626
Mar 26, 2026
Merged

SRVKP-9626: Migrate to ConsoleDataView for Pipelines and PipelineRuns tab#1011
openshift-merge-bot[bot] merged 1 commit intoopenshift-pipelines:masterfrom
arvindk-softwaredev:feat/SRVKP-9626

Conversation

@arvindk-softwaredev
Copy link
Copy Markdown
Contributor

Summary

This PR migrates the Pipelines list and PipelineRuns list pages from the legacy VirtualizedTable + ListPageFilter pattern to the new ConsoleDataView component from @openshift-console/dynamic-plugin-sdk-internal

Changes

List component migration to ConsoleDataView

  • Replaced VirtualizedTable and ListPageFilter with ConsoleDataView in PipelineRunsList.tsx and PipelinesList.tsx.
  • Converted row components from RowProps-based React components (PipelineRunRow, PipelineRow) into GetDataViewRows functions (getPipelineRunsListDataViewRows, getPipelineListDataViewRows) that return cell descriptors instead of JSX table rows.
  • Extracted column metadata into shared tableColumnInfo arrays in usePipelineRunsColumns.ts and usePipelinesColumns.ts, removing the sortable transform and legacy tableColumnClasses objects.
  • Removed the usePipelinesFilters.ts file entirely, consolidating filter logic into the generic useDataViewFilter hook.

Task run resolution moved into LinkedPipelineRunTaskStatus

  • Created a new useLinkedPipelineRunTaskStatus hook that encapsulates the logic for deciding whether to fetch task runs for a pipeline run (only needed for cancelled runs with child references).
  • Moved the in-memory TASKRUNSFORPLRCACHE / InFlightStore caching from the row components into this hook.
  • LinkedPipelineRunTaskStatus now self-resolves its task runs when props are not provided, enabling the ConsoleDataView rows to render without per-row task-run fetching logic.
  • Added a skipFetch option to useTaskRuns to avoid unnecessary API calls.

Screen Recording for Pipelines Tab

SRVKP-9626-Pipelines.Tab.mov

Screen Recording for PipelineRuns Tab

SRVKP-9626-PipelineRuns.Tab.mov

@openshift-ci-robot
Copy link
Copy Markdown
Collaborator

openshift-ci-robot commented Mar 26, 2026

@arvindk-softwaredev: This pull request references SRVKP-9626 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 story to target the "4.22.0" version, but no target version was set.

Details

In response to this:

Summary

This PR migrates the Pipelines list and PipelineRuns list pages from the legacy VirtualizedTable + ListPageFilter pattern to the new ConsoleDataView component from @openshift-console/dynamic-plugin-sdk-internal

Changes

List component migration to ConsoleDataView

  • Replaced VirtualizedTable and ListPageFilter with ConsoleDataView in PipelineRunsList.tsx and PipelinesList.tsx.
  • Converted row components from RowProps-based React components (PipelineRunRow, PipelineRow) into GetDataViewRows functions (getPipelineRunsListDataViewRows, getPipelineListDataViewRows) that return cell descriptors instead of JSX table rows.
  • Extracted column metadata into shared tableColumnInfo arrays in usePipelineRunsColumns.ts and usePipelinesColumns.ts, removing the sortable transform and legacy tableColumnClasses objects.
  • Removed the usePipelinesFilters.ts file entirely, consolidating filter logic into the generic useDataViewFilter hook.

Task run resolution moved into LinkedPipelineRunTaskStatus

  • Created a new useLinkedPipelineRunTaskStatus hook that encapsulates the logic for deciding whether to fetch task runs for a pipeline run (only needed for cancelled runs with child references).
  • Moved the in-memory TASKRUNSFORPLRCACHE / InFlightStore caching from the row components into this hook.
  • LinkedPipelineRunTaskStatus now self-resolves its task runs when props are not provided, enabling the ConsoleDataView rows to render without per-row task-run fetching logic.
  • Added a skipFetch option to useTaskRuns to avoid unnecessary API calls.

Screen Recording for Pipelines Tab

SRVKP-9626-Pipelines.Tab.mov

Screen Recording for PipelineRuns Tab

SRVKP-9626-PipelineRuns.Tab.mov

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
Copy Markdown
Contributor

@anwesha-palit-redhat anwesha-palit-redhat 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 Looks Good to Me Label label Mar 26, 2026
@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci bot commented Mar 26, 2026

[APPROVALNOTIFIER] This PR is APPROVED

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

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

The pull request process is described here

Details 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

@openshift-ci openshift-ci bot added the approved Label for Approved PRs label Mar 26, 2026
@openshift-merge-bot openshift-merge-bot bot merged commit 0b44ca5 into openshift-pipelines:master Mar 26, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Label for Approved PRs jira/valid-reference lgtm Looks Good to Me Label

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants