Skip to content

SRVKP-15668: Add LocalQueue List Page - #1498

Merged
anwesha-palit-redhat merged 1 commit into
openshift-pipelines:masterfrom
ankrsinha:feat/SRVKP-15668
Dec 2, 2026
Merged

anwesha-palit-redhat merged 1 commit into
openshift-pipelines:masterfrom
ankrsinha:feat/SRVKP-15668

Conversation

@ankrsinha

@ankrsinha ankrsinha commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Type of Change

  • Bug fix
  • New feature
  • Refactoring
  • Migration
  • CVE Fix

Summary

Adds a LocalQueues tab to the Pipelines page for hub clusters.

  • Show the LocalQueues tab only when multi-cluster is enabled and the current cluster is a hub.
  • Display Name, Admitted Workloads, Pending Workloads, and Last Updated columns.
  • Add name filtering and namespace-aware resource links.
  • Add LocalQueue to the Pipelines Create menu (gated by isHub).
  • Add a delete row action (LocalQueues intentionally have no edit action).

Screen Recordings / Screenshot

SRVKP-15668-updated.mp4

For Narrow Screen

SRVKP-15668-narrow.mp4

@openshift-ci-robot

openshift-ci-robot commented Nov 26, 2026 •

Copy link
Copy Markdown
Collaborator

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

Details

In response to this:

Type of Change

  • Bug fix
  • New feature
  • Refactoring
  • Migration
  • CVE Fix

Summary

Adds a LocalQueues tab to the Pipelines page for hub clusters.

  • Show the LocalQueues tab only when multi-cluster is enabled and the current cluster is a hub.
  • Display Name, Admitted Workloads, Pending Workloads, and Last Updated columns.
  • Add name filtering and namespace-aware resource links.
  • Add LocalQueue to the Pipelines Create menu (gated by isHub).
  • Add a delete row action (LocalQueues intentionally have no edit action).

Screen Recordings / Screenshot

SRVKP-15668.mp4

For Narrow Screen

SRVKP-15668-narrow.mp4

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.

@ankrsinha
ankrsinha requested review from anwesha-palit-redhat and removed request for vdemeester November 26, 2026 05:51
@qodo-code-review

Copy link
Copy Markdown

PR Reviewer Guide 🔍

Warning

/review is deprecated. Use /agentic_review instead (removal date not yet scheduled).

Here are some key observations to aid the review process:

⏱️ Estimated effort to review: 2 🔵🔵⚪⚪⚪
🧪 PR contains tests
🔒 No security concerns identified
⚡ Recommended focus areas for review

Incorrect Sorting

The Last Updated column displays the latest managed-field timestamp, but sorts by metadata.creationTimestamp. Queues updated after creation will appear out of order; sort by the displayed value instead.

id: localQueueColumnIds.lastUpdated,
title: t('Last Updated'),
sort: 'metadata.creationTimestamp',
props: { width: 20, modifier: 'nowrap' },

@qodo-code-review

Copy link
Copy Markdown

Important

The /generate_labels command by Qodo was deprecated on the 1st of October 2026 and is no longer available. We recommend switching to the latest Qodo review capabilities. Learn more

export const useLocalQueues = (
namespace: string,
): [LocalQueueKind[], boolean, unknown] => {
const { isHub } = useMultiClusterProxyService({});

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

why are we removing this ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Because if we use this then we will have the isHub gate twice, which will create issue while rendering the list, we will get a brief "No LocalQueues found" before the list starts loading.

In PipelinesTabbedPage.tsx, we are already checking for isHub, if it is true then only LocalQueues Page is rendered, and this useLocalQueues hook is used. so no point of again using this gate. thatswhy i removed this. same for clusterQueues also

@anwesha-palit-redhat anwesha-palit-redhat Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Oh maybe i missed it there, my bad
Removing this from api callsite means that this api will be called regardless if it is a hub cluster or a spoke cluster - which is not ideal
so let us add it back here and in cq

"No LocalQueues found" before the list starts loading.

this is valid, but maybe we need to find another way to address it while rendering, and not necessarily in this PR

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

okay will add the isHub gate in the hook back,
can i do this for CQ in this PR only ?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

can i do this for CQ in this PR only ?

yes please

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done, updated the PR desc with screen recording

@ankrsinha

Copy link
Copy Markdown
Contributor Author

PR Reviewer Guide 🔍

Warning

/review is deprecated. Use /agentic_review instead (removal date not yet scheduled).

Here are some key observations to aid the review process:
⏱️ Estimated effort to review: 2 🔵🔵⚪⚪⚪
🧪 PR contains tests
🔒 No security concerns identified
⚡ Recommended focus areas for review

Incorrect Sorting

The Last Updated column displays the latest managed-field timestamp, but sorts by metadata.creationTimestamp. Queues updated after creation will appear out of order; sort by the displayed value instead.

Addresed

@anwesha-palit-redhat

Copy link
Copy Markdown
Contributor

/lgtm

@openshift-ci openshift-ci Bot added the lgtm Looks Good to Me Label label Nov 30, 2026
title: t('Name'),
sort: 'metadata.name',
props: { width: 35, isStickyColumn: true, modifier: 'nowrap' },
},

@arvindk-softwaredev arvindk-softwaredev Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

since LocalQueue is scoped to a Namespace, we need to conditionally display a column Namespace when the user selects All Projects filter though it is not present in Figma (similar to Pipelines List Page)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Updated the code to conditionally render Namespace column when All projects is selected

- Add namespace-scoped LocalQueues tab with filtering and workload metrics.
- Add create entry and delete action for each LQ.

Signed-off-by: Ankur Sinha <anksinha@redhat.com>
@openshift-ci openshift-ci Bot removed the lgtm Looks Good to Me Label label Dec 1, 2026

@arvindk-softwaredev arvindk-softwaredev left a comment

Copy link
Copy Markdown
Contributor

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 Dec 1, 2026
@openshift-ci

openshift-ci Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ankrsinha, 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 [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-ci openshift-ci Bot added the approved Label for Approved PRs label Dec 1, 2026
@anwesha-palit-redhat

Copy link
Copy Markdown
Contributor

/retest

@anwesha-palit-redhat
anwesha-palit-redhat merged commit 2f57d59 into openshift-pipelines:master Dec 2, 2026
5 of 8 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.

4 participants