console icon indicating copy to clipboard operation
console copied to clipboard

OCPBUGS-65946: Fix search component to not pass ALL_NAMESPACES_KEY to…

Open TheRealJon opened this issue 4 months ago • 17 comments

… the AsyncComponent

TheRealJon avatar Dec 01 '25 20:12 TheRealJon

@TheRealJon: This pull request references Jira Issue OCPBUGS-65946, which is invalid:

  • expected the bug to target the "4.21.0" version, but no target version was set

Comment /jira refresh to re-evaluate validity if changes to the Jira bug are made, or edit the title of this pull request to link to a different bug.

The bug has been updated to refer to the pull request using the external bug tracker.

In response to this:

… the AsyncComponent

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-robot avatar Dec 01 '25 20:12 openshift-ci-robot

Walkthrough

Adjusted namespace handling in the search component to treat the all-namespaces sentinel as undefined for the AsyncComponent loader; updated Cypress integration tests to use the data-view (dv) API, re-enable tests, and add assertions about namespace visibility in search results.

Changes

Cohort / File(s) Change Summary
Namespace handling change
frontend/public/components/search.tsx
Imported ALL_NAMESPACES_KEY and modified the AsyncComponent loader namespace prop to map ALL_NAMESPACES_KEY to undefined, altering how all-namespaces requests are represented.
Integration test updates
frontend/packages/integration-tests-cypress/tests/app/filtering-and-searching.cy.ts
Introduced SEARCH_NAMESPACE and SEARCH_DEPLOYMENT_NAME constants; replaced listPage.rows with listPage.dvRows, listPage.dvFilter and related dv assertions; changed expected counts to use countShouldBe(3); re-enabled tests (xitit); added tests verifying namespace visibility in search results for "All Namespaces" vs specific namespace.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

  • Reason: small component logic change plus several test API migrations and new tests require verifying test behavior.
  • Pay attention to:
    • Correct mapping of ALL_NAMESPACES_KEYundefined in all loader call sites.
    • Test updates using dv APIs and new assertions for namespace visibility.
✨ Finishing touches
  • [ ] 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • [ ] Create PR with unit tests
  • [ ] Post copyable unit tests in a comment

Comment @coderabbitai help to get the list of available commands and usage tips.

coderabbitai[bot] avatar Dec 01 '25 20:12 coderabbitai[bot]

/jira refresh

TheRealJon avatar Dec 01 '25 20:12 TheRealJon

@TheRealJon: This pull request references Jira Issue OCPBUGS-65946, which is valid. The bug has been moved to the POST state.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target version (4.21.0) matches configured target version for branch (4.21.0)
  • bug is in the state ASSIGNED, which is one of the valid states (NEW, ASSIGNED, POST)

Requesting review from QA contact: /cc @yapei

In response to this:

/jira refresh

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-robot avatar Dec 01 '25 20:12 openshift-ci-robot

/lgtm

rhamilto avatar Dec 01 '25 22:12 rhamilto

/jira refresh

The requirements for Jira bugs have changed (Jira issues linked to PRs on main branch need to target different OCP), recalculating validity.

openshift-bot avatar Dec 12 '25 08:12 openshift-bot

@openshift-bot: This pull request references Jira Issue OCPBUGS-65946, which is invalid:

  • expected the bug to target either version "4.22." or "openshift-4.22.", but it targets "4.21.0" instead

Comment /jira refresh to re-evaluate validity if changes to the Jira bug are made, or edit the title of this pull request to link to a different bug.

In response to this:

/jira refresh

The requirements for Jira bugs have changed (Jira issues linked to PRs on main branch need to target different OCP), recalculating validity.

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-robot avatar Dec 12 '25 08:12 openshift-ci-robot

/lgtm cancel

Please add the test updates from https://github.com/openshift/console/pull/15826/files#diff-8a164ce7ed5a6df090a10cb8c9d42e3cebdecea9c5b6423a556e399dd42445b7

rhamilto avatar Dec 12 '25 13:12 rhamilto

/retest

TheRealJon avatar Dec 12 '25 14:12 TheRealJon

/retest

rhamilto avatar Dec 13 '25 00:12 rhamilto

/retest

rhamilto avatar Dec 13 '25 15:12 rhamilto

/jira refresh

vikram-raj avatar Dec 15 '25 13:12 vikram-raj

@vikram-raj: This pull request references Jira Issue OCPBUGS-65946, which is valid.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target version (4.22.0) matches configured target version for branch (4.22.0)
  • bug is in the state POST, which is one of the valid states (NEW, ASSIGNED, POST)

Requesting review from QA contact: /cc @yapei

In response to this:

/jira refresh

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-robot avatar Dec 15 '25 13:12 openshift-ci-robot

/retest

vikram-raj avatar Dec 16 '25 15:12 vikram-raj

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: TheRealJon, vikram-raj

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

openshift-ci[bot] avatar Dec 16 '25 15:12 openshift-ci[bot]

/retest

TheRealJon avatar Dec 17 '25 15:12 TheRealJon

/retest

TheRealJon avatar Dec 18 '25 15:12 TheRealJon

/retest

rhamilto avatar Dec 18 '25 19:12 rhamilto

/jira refresh

The requirements for Jira bugs have changed (Jira issues linked to PRs on main branch need to target different OCP), recalculating validity.

openshift-bot avatar Jan 01 '26 00:01 openshift-bot

@openshift-bot: This pull request references Jira Issue OCPBUGS-65946, which is valid.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target version (4.22.0) matches configured target version for branch (4.22.0)
  • bug is in the state POST, which is one of the valid states (NEW, ASSIGNED, POST)

Requesting review from QA contact: /cc @yapei

In response to this:

/jira refresh

The requirements for Jira bugs have changed (Jira issues linked to PRs on main branch need to target different OCP), recalculating validity.

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-robot avatar Jan 01 '26 00:01 openshift-ci-robot

@yapei Could you take QE verify when you get a chance?

TheRealJon avatar Jan 05 '26 14:01 TheRealJon

Before the fix: searching some resources with All Projects will return 404 before-fix-404

After the fix: resources in all namespaces can be returned successfully after-fix

/verified by @yapei

yapei avatar Jan 06 '26 08:01 yapei

@yapei: This PR has been marked as verified by @yapei.

In response to this:

Before the fix: searching some resources with All Projects will return 404 before-fix

After the fix: resources in all namespaces can be returned successfully Screenshot 2026-01-06 at 4 22 10 PM

/verified by @yapei

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-robot avatar Jan 06 '26 08:01 openshift-ci-robot

/retest-required

Remaining retests: 0 against base HEAD d00353d166cbb752ddfcde940ed2c4d62a33521c and 2 for PR HEAD 2765cdbb06d4af55117959a49be6cd8ffa0cf56f in total

openshift-ci-robot avatar Jan 06 '26 09:01 openshift-ci-robot

/retest-required

Remaining retests: 0 against base HEAD 9c70ba0e0f17e4a9f037f79768fc7cc2a07ccf3b and 1 for PR HEAD 2765cdbb06d4af55117959a49be6cd8ffa0cf56f in total

openshift-ci-robot avatar Jan 06 '26 22:01 openshift-ci-robot

/retest-required

Remaining retests: 0 against base HEAD 255260298373cbcc0357a851767c56b3985c3b66 and 0 for PR HEAD 2765cdbb06d4af55117959a49be6cd8ffa0cf56f in total

openshift-ci-robot avatar Jan 07 '26 16:01 openshift-ci-robot

/hold

Revision 2765cdbb06d4af55117959a49be6cd8ffa0cf56f was retested 3 times: holding

openshift-ci-robot avatar Jan 07 '26 17:01 openshift-ci-robot

/retest

TheRealJon avatar Jan 09 '26 14:01 TheRealJon

@TheRealJon: all tests passed!

Full PR test history. Your PR dashboard.

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. I understand the commands that are listed here.

openshift-ci[bot] avatar Jan 09 '26 14:01 openshift-ci[bot]

/unhold /retest

logonoff avatar Jan 11 '26 21:01 logonoff