Repository navigation
SRVKP-15668: Add LocalQueue List Page - #1498
Conversation
|
@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. DetailsIn response to this:
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. |
PR Reviewer Guide 🔍Warning
Here are some key observations to aid the review process:
|
|
Important The |
| export const useLocalQueues = ( | ||
| namespace: string, | ||
| ): [LocalQueueKind[], boolean, unknown] => { | ||
| const { isHub } = useMultiClusterProxyService({}); |
There was a problem hiding this comment.
why are we removing this ?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
There was a problem hiding this comment.
okay will add the isHub gate in the hook back,
can i do this for CQ in this PR only ?
There was a problem hiding this comment.
can i do this for CQ in this PR only ?
yes please
There was a problem hiding this comment.
Done, updated the PR desc with screen recording
83e0234 to
2a4e477
Compare
Addresed |
2a4e477 to
33bea20
Compare
|
/lgtm |
| title: t('Name'), | ||
| sort: 'metadata.name', | ||
| props: { width: 35, isStickyColumn: true, modifier: 'nowrap' }, | ||
| }, |
There was a problem hiding this comment.
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)
There was a problem hiding this comment.
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>
33bea20 to
27f4ef4
Compare
|
[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 DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/retest |
2f57d59
into
openshift-pipelines:master
Type of Change
Summary
Adds a LocalQueues tab to the Pipelines page for hub clusters.
Screen Recordings / Screenshot
SRVKP-15668-updated.mp4
For Narrow Screen
SRVKP-15668-narrow.mp4