Skip to content

OCPBUGS-139143: Remove the duplicate project picker on legacy Installed Operators routes - #17569

Open
stefanonardo wants to merge 1 commit into
openshift:mainfrom
stefanonardo:OCPBUGS-139143
Open

stefanonardo wants to merge 1 commit into
openshift:mainfrom
stefanonardo:OCPBUGS-139143

Conversation

@stefanonardo

@stefanonardo stefanonardo commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Analysis / Root cause
With Technology Preview enabled, both the console shell and the tabbed Installed Operators page render a project picker on the legacy ClusterServiceVersion routes.

Solution description
Use the shell’s picker on both legacy CSV routes and keep the page-level picker on the canonical Installed Operators and ClusterExtension routes.

Summary by CodeRabbit

  • Bug Fixes
    • Removed the duplicate namespace dropdown from the Classic Installed Operators tab. The Installed Operators view now displays a single namespace dropdown across its tabs.

…ed Operators routes

The legacy CSV routes already receive a project picker from the console
shell. Disable the tabbed page's picker on those routes so they show one.

Assisted-by: Codex GPT-6
@openshift-merge-bot

Copy link
Copy Markdown
Contributor

Pipeline controller notification

This PR uses the pipeline controller for second-stage tests. Selection and triggering follow the repository configuration.

Use /test ? to list jobs and /pipeline help for commands.

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Nov 25, 2026
@openshift-ci-robot openshift-ci-robot added the jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. label Nov 25, 2026
@openshift-ci-robot

Copy link
Copy Markdown
Contributor

@stefanonardo: This pull request references Jira Issue OCPBUGS-139143, which is invalid:

  • expected the bug to target the "5.1.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.

Details

In response to this:

Analysis / Root cause
With Technology Preview enabled, both the console shell and the tabbed Installed Operators page render a project picker on the legacy ClusterServiceVersion routes.

Solution description
Use the shell’s picker on both legacy CSV routes and keep the page-level picker on the canonical Installed Operators and ClusterExtension routes.

Screenshots / screen recording

Test setup
Use an OpenShift cluster with TechPreviewNoUpgrade enabled and the tabbed Installed Operators experience available.

Test cases

  • Follow View installed Operators from the Cluster Settings upgrade warning. Verify the Classic Operators tab shows one picker, then select a project and verify the scoped page still shows one picker.
  • Playwright now asserts one picker on the legacy CSV, canonical Installed Operators, and ClusterExtension routes. The configured cluster hostname did not resolve, so the live checks remain pending.
  • All four focused Jest tests passed on Node 24.22.1. Lint and formatting checks passed.

Browser conformance

  • Chrome
  • Firefox
  • Safari (or Epiphany on Linux)

Additional info
OCPBUGS-139143

Reviewers and assignees
@openshift/team-ux-review
/assign stefanonardo

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.

@coderabbitai

coderabbitai Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

No actionable comments were generated in the recent review.

Walkthrough

The tabbed page now supports optional control of namespace bar visibility. The Classic route disables the bar. Three E2E tests assert that the dropdown is present in Installed Operators views.

Changes

Namespace bar visibility

Layer / File(s) Summary
Add namespace bar visibility control
frontend/packages/operator-lifecycle-manager-v1/src/components/InstalledOperatorsTabbedPage.tsx, frontend/packages/operator-lifecycle-manager-v1/src/components/ClassicInstalledOperatorsRoutePage.tsx
InstalledOperatorsTabbedPage adds an optional showNamespaceBar prop, which defaults to true. The Classic route passes false.
Check dropdown presence
frontend/e2e/tests/olm/classic-operators-section.spec.ts
Three E2E tests assert that one namespace-bar dropdown is present across the default tab, the Classic tab, and the Cluster extensions tab.

Estimated code review effort: 2 (Simple) | ~8 minutes

Change: Bug fix

Suggested reviewers: therealjon

Merge Risk: Minimal · up to 4418e

This removes the duplicate project picker on the legacy ClusterServiceVersion routes by using the console shell's picker. The canonical Installed Operators and ClusterExtension routes keep their page-level picker. No merge-blocking risk was found; the live cluster checks the author reported as pending are the only open verification step.

Pre-merge checks: Passed 13 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Description check Warning The description gives a brief root cause and solution, but it omits most of the template. It has no Screenshots section, no Test setup, no Test cases, no Browser conformance checkboxes, no Additional … Add the missing template sections: Screenshots or screen recordings (the change affects visible namespace bar rendering, so include before and after images), Test setup (a cluster with TechPreviewNoUpgrade enabled and the tabbed Installed O…
Passed Passed checks: 13 passed

Check name Status Explanation
Title check Passed The title names the change: removing the duplicate project picker on legacy Installed Operators (CSV) routes. The raw summary shows the change sets showNamespaceBar to false for the Classic route and …
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Stable And Deterministic Test Names Passed The check covers Ginkgo test titles (It, Describe, Context, When, and similar). The PR changes three files: a Playwright E2E spec (frontend/e2e/tests/olm/classic-operators-section.spec.ts), ClassicIns…
Test Structure And Quality Passed The check applies to Ginkgo test code. The reviewed range (refs/coderabbit/pre-merge-check/base..head) changes three files: one Playwright/TypeScript E2E spec (frontend/e2e/tests/olm/classic-operators…
Microshift Test Compatibility Passed The check applies only when new Ginkgo e2e tests (It, Describe, Context, When) are added. This PR adds none. The changed files are three frontend files: one Playwright/TypeScript spec (frontend/e2e/te…
Single Node Openshift (Sno) Test Compatibility Passed The check applies only to new Ginkgo e2e tests (Go-based It/Describe/Context/When blocks). The reviewed range changes three files, all frontend TypeScript/TSX: `frontend/e2e/tests/olm/classic-operator…
Topology-Aware Scheduling Compatibility Passed The check applies only when deployment manifests, operator code, or controllers add or change scheduling constraints. This PR changes three files, all frontend TypeScript/React and e2e tests: the diff…
Ote Binary Stdout Contract Passed The check is not applicable to this pull request. The check covers OpenShift Tests Extension (OTE) Go binaries and their process-level stdout. PR #17569 (openshift/console, by stefanonardo) changes on…
Ipv6 And Disconnected Network Test Compatibility Passed The check applies only to new Ginkgo e2e tests (Go It(), Describe(), Context(), When()). This PR (openshift/console #17569, author stefanonardo) changes three files, all in the TypeScript/Reac…
No-Weak-Crypto Passed The no-weak-crypto check finds no weak or custom cryptography introduced by this PR. - The pull request changes three files: the Installed Operators E2E spec (`frontend/e2e/tests/olm/classic-operators…
Container-Privileges Passed The check is inapplicable to this pull request. The reviewed range changes three frontend files: one Cypress/Playwright-style E2E spec (frontend/e2e/tests/olm/classic-operators-section.spec.ts) and …
No-Sensitive-Data-In-Logs Passed The check forbids logging that may expose passwords, tokens, API keys, PII, session IDs, internal hostnames, or customer data. The PR changes three files: an E2E spec that adds three namespace-bar ass…
Full details: Title check

Explanation

The title names the change: removing the duplicate project picker on legacy Installed Operators (CSV) routes. The raw summary shows the change sets showNamespaceBar to false for the Classic route and adds the prop to the tabbed page, which matches the title. The title includes a Jira key (OCPBUGS-139143) as the repository template requires. The PR objectives note a bot comment that the Jira issue lacks the target version 5.1.0; this affects Jira validity, not the title's relevance to the change.

Full details: Stable And Deterministic Test Names

Explanation

The check covers Ginkgo test titles (It, Describe, Context, When, and similar). The PR changes three files: a Playwright E2E spec (frontend/e2e/tests/olm/classic-operators-section.spec.ts), ClassicInstalledOperatorsRoutePage.tsx, and InstalledOperatorsTabbedPage.tsx. The diff for the spec adds three expect(...).toHaveCount(1) assertions on the namespace-bar-dropdown test ID. It adds no test titles. A search of the full diff for test-declaration calls (It, it, test, describe, Context, When, g.It) found no added or removed titles. The two React component changes add a showNamespaceBar prop and do not touch test names. No title includes pod names, timestamps, UUIDs, node names, IPs, or legacy openshift-tests-private metadata tokens. The check does not apply to these changes, so it passes.

Full details: Test Structure And Quality

Explanation

The check applies to Ginkgo test code. The reviewed range (refs/coderabbit/pre-merge-check/base..head) changes three files: one Playwright/TypeScript E2E spec (frontend/e2e/tests/olm/classic-operators-section.spec.ts) and two React components under frontend/packages/operator-lifecycle-manager-v1. A search of the changed files found no Ginkgo markers (ginkgo, g.It(, ote.Informing). The only test change adds three existing-test assertions that exactly one namespace-bar dropdown is present. It adds no new It() block, so the informing recommendation in criterion 6 does not apply. The check does not apply to this Playwright and TypeScript change, so it passes.

Full details: Microshift Test Compatibility

Explanation

The check applies only when new Ginkgo e2e tests (It, Describe, Context, When) are added. This PR adds none. The changed files are three frontend files: one Playwright/TypeScript spec (frontend/e2e/tests/olm/classic-operators-section.spec.ts), ClassicInstalledOperatorsRoutePage.tsx, and InstalledOperatorsTabbedPage.tsx. The spec diff adds three expect(...namespace-bar-dropdown...).toHaveCount(1) assertions inside existing test bodies. It creates no new test blocks. A search of the Go diff for Ginkgo constructs (g.It, g.Describe, g.Context, g.When, ginkgo) found no matches. The check is therefore inapplicable and passes.

Full details: Single Node Openshift (Sno) Test Compatibility

Explanation

The check applies only to new Ginkgo e2e tests (Go-based It/Describe/Context/When blocks). The reviewed range changes three files, all frontend TypeScript/TSX: frontend/e2e/tests/olm/classic-operators-section.spec.ts (Playwright-style spec, +3 assertions on namespace-bar dropdown count), ClassicInstalledOperatorsRoutePage.tsx (passes showNamespaceBar={false}), and InstalledOperatorsTabbedPage.tsx (adds optional showNamespaceBar prop). The git name-status inventory shows no Go files and no Ginkgo test declarations. The grep for Ginkgo markers failed due to a flag error, so that particular search is not conclusive. The file inventory alone establishes inapplicability. No new Ginkgo test exists, so no SNO topology assumption can be introduced. The check is not applicable and passes.

Full details: Topology-Aware Scheduling Compatibility

Explanation

The check applies only when deployment manifests, operator code, or controllers add or change scheduling constraints. This PR changes three files, all frontend TypeScript/React and e2e tests: the diff inventory shows frontend/e2e/tests/olm/classic-operators-section.spec.ts, ClassicInstalledOperatorsRoutePage.tsx, and InstalledOperatorsTabbedPage.tsx. The code diff only adds a showNamespaceBar prop (default true) that conditionally renders the NamespaceBar component. The e2e test change adds assertions that one namespace-bar dropdown exists. None of these touch pod specs, anti-affinity, topology spread, node selectors, tolerations, PDBs, replica counts, or deployment manifests. The check is not applicable, so it passes.

Full details: Ote Binary Stdout Contract

Explanation

The check is not applicable to this pull request. The check covers OpenShift Tests Extension (OTE) Go binaries and their process-level stdout. PR #17569 (openshift/console, by stefanonardo) changes only three TypeScript/TSX frontend files: - frontend/e2e/tests/olm/classic-operators-section.spec.ts (E2E assertions) - frontend/packages/operator-lifecycle-manager-v1/src/components/ClassicInstalledOperatorsRoutePage.tsx (passes showNamespaceBar={false}) - frontend/packages/operator-lifecycle-manager-v1/src/components/InstalledOperatorsTabbedPage.tsx (adds an optional showNamespaceBar prop) The changed-file inventory has no .go files and no cmd/, test-extension, or OTE paths. No stdout writes in main(), init(), TestMain(), suite setup, or top-level initializers are introduced. No Go code is touched, so no violation of the OTE stdout contract can be introduced by this change.

Full details: Ipv6 And Disconnected Network Test Compatibility

Explanation

The check applies only to new Ginkgo e2e tests (Go It(), Describe(), Context(), When()). This PR (openshift/console #17569, author stefanonardo) changes three files, all in the TypeScript/React frontend: - frontend/e2e/tests/olm/classic-operators-section.spec.ts (Playwright spec, +3 lines asserting exactly one namespace-bar dropdown) - frontend/packages/operator-lifecycle-manager-v1/src/components/ClassicInstalledOperatorsRoutePage.tsx (passes showNamespaceBar={false}) - frontend/packages/operator-lifecycle-manager-v1/src/components/InstalledOperatorsTabbedPage.tsx (adds optional showNamespaceBar prop) No Go files changed. The added lines contain no Ginkgo constructs and no IPv4 literals, IP parsing, or external hostnames. The IPv4 and external-connectivity conditions therefore do not apply. The check is not applicable, so it passes.

Full details: No-Weak-Crypto

Explanation

The no-weak-crypto check finds no weak or custom cryptography introduced by this PR. - The pull request changes three files: the Installed Operators E2E spec (frontend/e2e/tests/olm/classic-operators-section.spec.ts), ClassicInstalledOperatorsRoutePage.tsx, and InstalledOperatorsTabbedPage.tsx. All are frontend UI and routing code. - The change passes showNamespaceBar={false} on the legacy ClusterServiceVersion route and makes the namespace bar optional. The E2E tests assert that exactly one namespace-bar dropdown is present. - I searched the added lines for MD5, SHA1, DES, RC4, 3DES, Blowfish, ECB, and crypto, cipher, hash, HMAC, token, and secret terms. Nothing matched. - No comparison of secrets or tokens is added or changed. The PR does not touch any check-relevant code.

Full details: Container-Privileges

Explanation

The check is inapplicable to this pull request. The reviewed range changes three frontend files: one Cypress/Playwright-style E2E spec (frontend/e2e/tests/olm/classic-operators-section.spec.ts) and two React TSX components in frontend/packages/operator-lifecycle-manager-v1/src/components/. No container or Kubernetes manifest is changed. A keyword search of the full patch for privileged, hostPID, hostNetwork, hostIPC, SYS_ADMIN, runAsUser, allowPrivilegeEscalation, and securityContext returned no matches. The change only adds a showNamespaceBar prop and passes showNamespaceBar={false} on the legacy CSV route. It also adds three namespace-bar assertions to the E2E spec. None of these touch container privileges.

Full details: No-Sensitive-Data-In-Logs

Explanation

The check forbids logging that may expose passwords, tokens, API keys, PII, session IDs, internal hostnames, or customer data. The PR changes three files: an E2E spec that adds three namespace-bar assertions, ClassicInstalledOperatorsRoutePage.tsx (passes showNamespaceBar={false}), and InstalledOperatorsTabbedPage.tsx (adds an optional showNamespaceBar prop and conditionally renders NamespaceBar). A search of the added diff lines for console., log, logger, debug, warn, error, token, password, secret, and email returned no matches. The PR adds no logging statements, so no sensitive data can reach logs through it.

Full details: Description check

Explanation

The description gives a brief root cause and solution, but it omits most of the template. It has no Screenshots section, no Test setup, no Test cases, no Browser conformance checkboxes, no Additional info, and no Reviewers and assignees. The title Jira prefix requirement is also not addressed in the description. The analysis and solution are clear and relevant, so the description is partly complete, but several required sections are missing.

Resolution

Add the missing template sections: Screenshots or screen recordings (the change affects visible namespace bar rendering, so include before and after images), Test setup (a cluster with TechPreviewNoUpgrade enabled and the tabbed Installed Operators experience), Test cases (verify one project picker on legacy CSV routes, Installed Operators route, and ClusterExtension route), Browser conformance (mark tested browsers), Additional info, and Reviewers and assignees (an OCP console engineer, and @openshift/team-ux-review because the change affects visible UI). Also expand the Analysis and Solution sections to name the affected components, such as ClassicInstalledOperatorsRoutePage and InstalledOperatorsTabbedPage, and the new showNamespaceBar prop.

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Central YAML; Path: .coderabbit.yaml
  • Review profile: CHILL
  • Plan: Enterprise
  • Run ID: 34917705-40e1-48bf-ad1c-eb086c17a7fc
Commits

Reviewing files that changed from the base of the PR and between 46437bd and 4418ea3.

Files selected for processing: 3

  • frontend/e2e/tests/olm/classic-operators-section.spec.ts
  • frontend/packages/operator-lifecycle-manager-v1/src/components/ClassicInstalledOperatorsRoutePage.tsx
  • frontend/packages/operator-lifecycle-manager-v1/src/components/InstalledOperatorsTabbedPage.tsx

Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 11 remain after this review.

@openshift-ci
openshift-ci Bot requested review from cajieh and rhamilto November 25, 2026 09:58
@openshift-ci-robot openshift-ci-robot added jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. and removed jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. labels Nov 25, 2026
@openshift-ci-robot

Copy link
Copy Markdown
Contributor

@stefanonardo: This pull request references Jira Issue OCPBUGS-139143, 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 (5.1.0) matches configured target version for branch (5.1.0)
  • bug is in the state ASSIGNED, which is one of the valid states (NEW, ASSIGNED, POST)
Details

In response to this:

Analysis / Root cause
With Technology Preview enabled, both the console shell and the tabbed Installed Operators page render a project picker on the legacy ClusterServiceVersion routes.

Solution description
Use the shell’s picker on both legacy CSV routes and keep the page-level picker on the canonical Installed Operators and ClusterExtension routes.

Screenshots / screen recording

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 commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign jhadvig for approval. For more information see the Code Review Process.

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

Details 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 openshift-ci Bot added the component/olm Related to OLM label Nov 25, 2026
@openshift-ci-robot

Copy link
Copy Markdown
Contributor

@stefanonardo: This pull request references Jira Issue OCPBUGS-139143, which is valid.

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

In response to this:

Analysis / Root cause
With Technology Preview enabled, both the console shell and the tabbed Installed Operators page render a project picker on the legacy ClusterServiceVersion routes.

Solution description
Use the shell’s picker on both legacy CSV routes and keep the page-level picker on the canonical Installed Operators and ClusterExtension routes.

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 commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

@stefanonardo: all tests passed!

Full PR test history. Your PR dashboard.

Details

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.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component/olm Related to OLM jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants