Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-9103

Dynamic plugin SDK dependencies / crash management

XMLWordPrintable

    • Important
    • None
    • Rejected
    • All
    • If docs needed, set a value

      Description of problem:
      Mismatch between plugin / console dependencies versions causes console crash entire deployment details page. This may occurs on some other pages.

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

      How reproducible:
      You can use the dynamic plugin sdk example provided in the console

      Steps to Reproduce:
      1. Enable deployment tab in console-extensions.json
      2. Have breaking changes between dependencies ("css-loader": "^6.5.1" for example)
      3. Go to Deployments > Deployment details of any item

      Actual results:
      The page totally crash without managing error. You can't access other tabs until you disable the faulty plugin.

      Expected results:
      The console should manage import errors to check if everything is ok.
      If an error occurs, a proper message should be displayed in the corresponding tab allowing usage of other tabs.

      Additional info:
      Adding 'config.optimization.concatenateModules = false' in webpack.config.ts on plugin side solve this issue.

      The 'dynamic-demo-plugin' is outdated and should include this fix. Also, there should be testing + styling support in these examples.

      Original conversation:
      https://coreos.slack.com/archives/C011BL0FEKZ/p1643291876147900

              vszocs@redhat.com Vojtech Szocs
              jpinsonn@redhat.com Julien Pinsonneau
              Sanket Pathak Sanket Pathak
              Red Hat Employee
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

                Created:
                Updated:
                Resolved: