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

[OCM UI] Save action from "Edit machine pool" window broken with type error.

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • None
    • None
    • Core UI
    • False
    • Hide

      None

      Show
      None
    • False
    • OCM UI Sprint 245

      Description of problem:
      In ready ROSA HCP cluster, User tried to modify the machine pool node count definition from "Edit machine pool". As a result of the same i.e during save action widget broken with type error as below.

      Uncaught TypeError: e is undefined
          y clusterStates.ts:156
          r useMachinePools.ts:14
          je EditMachinePoolModal.tsx:253
          renderWithHooks chrome-root.bd990a4b339b480a.js:37294
          updateFunctionComponent chrome-root.bd990a4b339b480a.js:40572
          beginWork chrome-root.bd990a4b339b480a.js:42585
          callCallback chrome-root.bd990a4b339b480a.js:25153
          o helpers.js:72
          invokeGuardedCallbackDev chrome-root.bd990a4b339b480a.js:25202
          invokeGuardedCallback chrome-root.bd990a4b339b480a.js:25266
          beginWork$1 chrome-root.bd990a4b339b480a.js:48435
          performUnitOfWork chrome-root.bd990a4b339b480a.js:47544
          workLoopSync chrome-root.bd990a4b339b480a.js:47450
          renderRootSync chrome-root.bd990a4b339b480a.js:47418
          recoverFromConcurrentError chrome-root.bd990a4b339b480a.js:46834
          performSyncWorkOnRoot chrome-root.bd990a4b339b480a.js:47080
          flushSyncCallbacks chrome-root.bd990a4b339b480a.js:33031
          ensureRootIsScheduled chrome-root.bd990a4b339b480a.js:46635
      clusterStates.ts:156:2
          y clusterStates.ts:156
          r useMachinePools.ts:14
          je EditMachinePoolModal.tsx:253
          renderWithHooks chrome-root.bd990a4b339b480a.js:37294
          updateFunctionComponent chrome-root.bd990a4b339b480a.js:40572
          beginWork chrome-root.bd990a4b339b480a.js:42585
          callCallback chrome-root.bd990a4b339b480a.js:25153
          o helpers.js:72
          invokeGuardedCallbackDev chrome-root.bd990a4b339b480a.js:25202
          invokeGuardedCallback chrome-root.bd990a4b339b480a.js:25266
          beginWork$1 chrome-root.bd990a4b339b480a.js:48435
          performUnitOfWork chrome-root.bd990a4b339b480a.js:47544
          workLoopSync chrome-root.bd990a4b339b480a.js:47450
          renderRootSync chrome-root.bd990a4b339b480a.js:47418
          recoverFromConcurrentError chrome-root.bd990a4b339b480a.js:46834
          performSyncWorkOnRoot chrome-root.bd990a4b339b480a.js:47080
          flushSyncCallbacks chrome-root.bd990a4b339b480a.js:33031
          ensureRootIsScheduled chrome-root.bd990a4b339b480a.js:46635 

      How reproducible:

      always

      Steps to Reproduce:

      1. Open OCM UI staging.
      2. Open a ready ROSA Hypershift cluster.
      3. Go to Action context menu > "Edit machine pool" option.
      4. Change the node count definition like enable autoscale or disable autoscale option for random machine pools.
      5. Click "Save" button.
      6. View the behavior.

      Actual results:

      Save action failed with Type error while user tries to update the definition from "Edit machine pool" dialog.

      Expected results:

      Save action from "Edit machine pool" should be successful.

        1. EditMAchinePoolPreviousClusterMpsIssue.mp4
          2.48 MB
          Jayakrishnan Mekkattillam
        2. image-2023-11-23-15-39-23-819.png
          254 kB
          Jayakrishnan Mekkattillam
        3. TypeErrorEditMAchinePool.mp4
          5.02 MB
          Jayakrishnan Mekkattillam

            emingora Enrique Mingorance Cno
            jmekkatt@redhat.com Jayakrishnan Mekkattillam
            Jayakrishnan Mekkattillam Jayakrishnan Mekkattillam
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: