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

Details page doesn't catch errors which happen on a tab

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Normal Normal
    • openshift-4.9
    • openshift-4.8, openshift-4.9
    • UI
    • ODC Sprint 205
    • Low

      Description of problem:

      When an error happen on a details page which shows multiple tabs. The complete page catches the error and doesn't show the tabs anymore.

      This doesn't allow the user to check other data or, if available, the YAML tab.

      Prerequisites (if any, like setup, operators/versions):

      None

      Steps to Reproduce

      Produce a crash on a single tab of the DetailsPage component. For example on the environment page of a BuildConfig. Before ODC-6206 will be fixed this can reproduced with this steps. Otherwise you need to find another crash..

      1. Open developer perspective
      2. Navigate to Builds
      3. Click on "Create BuildConfig" button
      4. Just create the BuildConfig without additional changes
      5. Switch to the "Environment" tab
      6. Press "Add from ConfigMap or Secret" without selecting a ConfigMap or Secret and enter a name for this environment variable
      7. Press "Save"

      Actual results:

      The complete page shows an error which fills the complete content area.

      TypeError
      Description:
      Cannot read property 'component' of undefined
      
      Component Trace:
      minified stack
      
      Stack Trace:
      TypeError: Cannot read property 'component' of undefined
      minfied stack
      

      Expected results:

      Without the fix in ODC-6206 this error should still appear, but the other tabs should be still shown and selectable.

      The error could be shown just in the "Environment" tab.

      Reproducibility (Always/Intermittent/Only Once):

      Always

      Build Details:

      4.9.0-0.nightly-2021-07-25-125326

      Additional info:

      None

              cjerolim Christoph Jerolimov
              cjerolim Christoph Jerolimov
              Gajanan More Gajanan More (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: