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

Refactor PDBActionFactory to hook form.

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • None
    • None
    • None
    • None
    • None
    • OCP Console - Sprint 276

      As part of the work on react-router v5 drop, we need to migrate from the createModalLauncher instances in our codebase and we need to use the useModal hook instead.
      To use this hook we have to firstly refactor factories/functions where we call on the createModalLauncher instances to a hook/FC form, so that we can migrate to useModal.

      One such instance is PDBActionFactory, we should refactor it to its functional equivalent useDeploymentActions which would wrap and provide the existing list of Actions.

      AC:

      1. refactor PodDisruptionBudgetActionFactory to hook form.
      2. consolidate all consumers of PodDisruptionBudgetActionFactory to use the new hook form instead.

              rh-ee-mziska Marek Ziska (Inactive)
              rh-ee-mziska Marek Ziska (Inactive)
              None
              None
              Yanping Zhang Yanping Zhang
              None
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: