Uploaded image for project: 'OpenShift Console'
  1. OpenShift Console
  2. CONSOLE-5027

Refactor public/ Directory Components to useK8sWatchResource(s)

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • None
    • None
    • None
    • None
    • None
    • OCP Console - Sprint 283

      Refactor public/ Directory Components to useK8sWatchResource(s)

      *Description: *Migrate all components within the /public directory from the legacy <Firehose> wrapper to the modern useK8sWatchResource and useK8sWatchResources hooks.

      *Scope: *~19 files identified in the investigation.

      AC:

      • Functional Parity: All 19 identified components maintain existing behavior for resource fetching, loading states, and error handling.
      • Hook Migration: The legacy <Firehose> component and its associated Higher-Order Component (HOC) props are removed and replaced with useK8sWatchResource or useK8sWatchResources.
      • Dependency Handling: Components utilizing connectToFlags or multiple resource instances (e.g., cron-job.tsx) successfully resolve data without regressions.
      • Test Alignment: Unit and integration tests (including firehose.spec.tsx) are updated to reflect hook-based data fetching and are passing.

              cajieh Cyril Ajieh
              cajieh Cyril Ajieh
              None
              None
              None
              None
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: