Skip to content

SRVKP-11391: fix for archived PLR details page#1023

Merged
openshift-merge-bot[bot] merged 1 commit intoopenshift-pipelines:masterfrom
arvindk-softwaredev:fix/SRVKP-11391
Apr 6, 2026
Merged

SRVKP-11391: fix for archived PLR details page#1023
openshift-merge-bot[bot] merged 1 commit intoopenshift-pipelines:masterfrom
arvindk-softwaredev:fix/SRVKP-11391

Conversation

@arvindk-softwaredev
Copy link
Copy Markdown
Contributor

Summary

Updated logic for archived PipelineRun loader to prevent indefinite loading state

Fix

Changed the loaded condition from && (AND) to || (OR) across three components so that the UI considers data loaded when either source has finished loading:

  • PipelineRunDetailsPage.tsx — pipelineRunLoaded = k8sLoaded || trLoaded (was &&)

  • PipelineRunVisualization.tsx — taskRunsLoaded = k8sLoaded || trLoaded (was &&)

  • PipelineRunLogs.tsx — Destructured k8sLoaded and trLoaded separately from useTaskRuns (previously collapsed into a single taskRunsLoaded), then applied the same || logic to compute taskRunsLoaded

This ensures that if at least one data source (K8s or Tekton Results) has completed loading, the UI will render the available data instead of blocking indefinitely.

Screen Recordings

Before

SRVKP-11391-Before.mov

After Fix

SRVKP-11391-After.mov

@openshift-ci-robot
Copy link
Copy Markdown
Collaborator

openshift-ci-robot commented Apr 2, 2026

@arvindk-softwaredev: This pull request references SRVKP-11393 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.22.0" version, but no target version was set.

Details

In response to this:

Summary

Updated logic for archived PipelineRun loader to prevent indefinite loading state

Fix

Changed the loaded condition from && (AND) to || (OR) across three components so that the UI considers data loaded when either source has finished loading:

  • PipelineRunDetailsPage.tsx — pipelineRunLoaded = k8sLoaded || trLoaded (was &&)

  • PipelineRunVisualization.tsx — taskRunsLoaded = k8sLoaded || trLoaded (was &&)

  • PipelineRunLogs.tsx — Destructured k8sLoaded and trLoaded separately from useTaskRuns (previously collapsed into a single taskRunsLoaded), then applied the same || logic to compute taskRunsLoaded

This ensures that if at least one data source (K8s or Tekton Results) has completed loading, the UI will render the available data instead of blocking indefinitely.

Screen Recordings

Before

SRVKP-11391-Before.mov

After Fix

SRVKP-11391-After.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.

@openshift-ci openshift-ci bot requested review from pratap0007 and vikram-raj April 2, 2026 15:06
@openshift-ci openshift-ci bot added the approved Label for Approved PRs label Apr 2, 2026
@arvindk-softwaredev arvindk-softwaredev changed the title SRVKP-11393: fix for archived PLR details page SRVKP-11391: fix for archived PLR details page Apr 6, 2026
@openshift-ci-robot
Copy link
Copy Markdown
Collaborator

openshift-ci-robot commented Apr 6, 2026

@arvindk-softwaredev: This pull request references SRVKP-11391 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.22.0" version, but no target version was set.

Details

In response to this:

Summary

Updated logic for archived PipelineRun loader to prevent indefinite loading state

Fix

Changed the loaded condition from && (AND) to || (OR) across three components so that the UI considers data loaded when either source has finished loading:

  • PipelineRunDetailsPage.tsx — pipelineRunLoaded = k8sLoaded || trLoaded (was &&)

  • PipelineRunVisualization.tsx — taskRunsLoaded = k8sLoaded || trLoaded (was &&)

  • PipelineRunLogs.tsx — Destructured k8sLoaded and trLoaded separately from useTaskRuns (previously collapsed into a single taskRunsLoaded), then applied the same || logic to compute taskRunsLoaded

This ensures that if at least one data source (K8s or Tekton Results) has completed loading, the UI will render the available data instead of blocking indefinitely.

Screen Recordings

Before

SRVKP-11391-Before.mov

After Fix

SRVKP-11391-After.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.

@arvindk-softwaredev arvindk-softwaredev requested review from anwesha-palit-redhat and removed request for pratap0007 and vikram-raj April 6, 2026 06:19
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 Apr 6, 2026
@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci bot commented Apr 6, 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,arvindk-softwaredev]

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

@openshift-merge-bot openshift-merge-bot bot merged commit 81d30ff into openshift-pipelines:master Apr 6, 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