Uploaded image for project: 'OCMUI - OpenShift Cluster Manager UI'
  1. OCMUI - OpenShift Cluster Manager UI
  2. OCMUI-2709

Migrate Edit load balancers modal (multiRegion version only) to Formik

    • Icon: Story Story
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • None
    • A-Team
    • None

      The purpose of this story is to remove the dependency of the redux-forms module in the edit load balancers and persistent storage modal.  There shall be no functional or display changes to the end user.   Note there may be two versions of this modal in the code base, only the multiRegion version needs to be changed.

       

       

      Items included:

      1. Change the form handler from redux-forms to formik. 
         Note the form handler is at: src/components/clusters/commonMultiRegion/ScaleClusterDialog/index.js
      2. Remove or modify child components that use formik code
      3. Update any related unit tests to no longer use redux-form
      4. Verify the form works as it does today (no functionality change).

       

      Testing implications:

      NOTE: Until OCMUI-2524 is in Review or Closed - you will need to add `?multiregion=true` to the end of the URL to turn on the multiRegion preview. 

       

      This option is only available on clusters that are managed but not CSS.   

        const showScale = cluster.canEdit && cluster.managed && !cluster.ccs?.enabled;

       

      A regression test is needed to ensure that the form functions as before.  This includes verifying form validation and form submission. 

       

      --------

      Old Notes:

      Need to investigate if this is two areas of the UI? ClusterAutoScaling .vs MP scaling?

      Migrate to Formik:

      • src/components/clusters/common/EditClusterAutoScalingDialog
      • src/components/clusters/common/ScaleClusterDialog

              Unassigned Unassigned
              dtaylor@redhat.com David Taylor
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: