Uploaded image for project: 'Red Hat Developer Hub Bugs'
  1. Red Hat Developer Hub Bugs
  2. RHDHBUGS-2059

[Extensions] show proper error message when no plugin is available

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 1.8.0
    • Plugin, UI
    • None
    • 1
    • False
    • Hide

      None

      Show
      None
    • False
    • RHDH F&UI plugins 3280, RHDH F&UI plugins 3281

      Description of problem:

      Currently when the URL points to a plugin page that is not available, meaning no such a catalog entity for the plugin, the side drawer shows a compiler TypeError which is not expected. We should improve this behavior to show a proper user friendly message.

       

      Version-Release number of selected component (if applicable):

      release 1.5 - release 1.7 - main branch

       

      How reproducible:

      Enable Extensions plugin and start your local RHDH by `yarn dev`

       

      Steps to Reproduce:

      1. Attach this example url to see the compiler error

      localhost:3001/extensions/plugins/rhdh/backstage-community-plugin-tech-radar

      key point: `backstage-community-plugin-tech-radar` is a package name not a plugin name, which means there's no plugin entity for such name, and there's no plugin info available for the side drawer display

       

      Actual results:

      See attached screenshot

       

      Expected results:

      User friendly error message, stating that this plugin is not available, please check your plugin's catalog entity. Or message similar to this.

       

      Additional info:

       

              dsantra12 Debsmita Santra
              yicai@redhat.com Yi Cai
              RHIDP - Frontend Plugins & UI
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: