Uploaded image for project: 'Red Hat Advanced Cluster Management'
  1. Red Hat Advanced Cluster Management
  2. ACM-22998

Implement Zustand Cache for useFleetK8sWatchResource Websocket

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Normal Normal
    • ACM 2.15.0
    • ACM 2.15.0
    • Console
    • None
    • Quality / Stability / Reliability
    • 5
    • False
    • Hide

      None

      Show
      None
    • False
    • Hide

      Provide the required acceptance criteria using this template.

      • ...
      Show
      Provide the required acceptance criteria using this template. ...
    • ACM Console Train 31 - 2
    • None

      Value Statement

      Ensure the issue title clearly reflects the value of this user story to the
      intended persona. (Explain the "WHY")

      Definition of Done for Engineering Story Owner (Checklist)

      • Implement client-side caching using a global state management library (like Zustand)
      • When multiple components are using the useFleetK8sWatchResource hook for the same query, a single watch is maintained and all callers receive live updates. (Currently, processing of the WebSocket only updates the state of the first hook called.)

      Development Complete

      • The code is complete.
      • Functionality is working.
      • Any required downstream Docker file changes are made.

      Tests Automated

      • [ ] Unit/function tests have been automated and incorporated into the
        build.
      • [ ] 100% automated unit/function test coverage for new or changed APIs.

      Secure Design

      • [ ] Security has been assessed and incorporated into your threat model.

      Multidisciplinary Teams Readiness

      • [ ] Create an informative documentation issue using the Customer

      Portal Doc template that you can access from [The Playbook](

      https://docs.google.com/document/d/1YTqpZRH54Bnn4WJ2nZmjaCoiRtqmrc2w6DdQxe_yLZ8/edit#heading=h.9fvyr2rdriby),

      and ensure doc acceptance criteria is met.

      • Call out this sentence as it's own action:
      • [ ] Link the development issue to the doc issue.

      Support Readiness

      • [ ] The must-gather script has been updated.

              rbrunopi Randy Bruno-Piverger
              rbrunopi Randy Bruno-Piverger
              David Huynh David Huynh
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: