Uploaded image for project: 'OpenShift Dev Console'
  1. OpenShift Dev Console
  2. ODC-5210

Remove Redux state for the Active Namespace user settings

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • None
    • UI
    • None
    • 3
    • False
    • False
    • Undefined
    • Not Supported

      Description of problem: 

      Currently, redux state and context provider extension both are being used to store the active namespace. We only want to use context provider extension and get rid of the redux state completely for the active namespace

      Acceptance Criteria

      1. Remove redux selector getActiveNamespace(state) and all usages
      2. Remove ui helper getActiveNamespace (in public/actions/ui.ts)
      3. Cleanup NamespaceContext and use only user-settings to get latest namespace (see packages/console-app/src/components/detect-namespace/namespace.ts)
      4. If possible remove all redux action type ActionType.SetActiveNamespace and redux setActiveNamespace action creator (and calls to this function) (:warning: this name is also used for the user settings update callback)
      5. Ensure that if the namespace is changed the application state (in redux) jumps automatically to ALL_APPLICATIONS_KEY. Maybe by dispatching a cleanup action in the setter of useActiveNamespace?

      Additional Details:

              Unassigned Unassigned
              sbudhwar-1 Sahil Budhwar
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: