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

Conflict in CreateProjectModal extension

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Critical Critical
    • 4.19.z
    • 4.17.z
    • Management Console
    • None
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • Critical
    • None
    • None
    • None
    • None
    • Done
    • Bug Fix
    • Hide
      * Before this update, a plugin conflict in the console modal occurred due to multiple plugins using the same `CreateProjectModal` extension point. As a consequence, only one plugin extension was used and the list order could not be changed. With this release, an update to the plugin store resolves extensions in the same order that are defined in the console operator configuration. As a result, anyone with permission to update the operator configuration can set the priority of the plugin. (link:https://issues.redhat.com/browse/OCPBUGS-56280[OCPBUGS-56280])
      Show
      * Before this update, a plugin conflict in the console modal occurred due to multiple plugins using the same `CreateProjectModal` extension point. As a consequence, only one plugin extension was used and the list order could not be changed. With this release, an update to the plugin store resolves extensions in the same order that are defined in the console operator configuration. As a result, anyone with permission to update the operator configuration can set the priority of the plugin. (link: https://issues.redhat.com/browse/OCPBUGS-56280 [ OCPBUGS-56280 ])
    • None
    • None
    • None
    • None

      This is a clone of issue OCPBUGS-43792. The following is the description of the original issue:

      Description of problem:

      When implementing the console.create-project-modal extension point for CreateProjectModal, the implemented solution was to replacie the content of the modal. As it occurs this solution has its issues, cause if multiple plugins use this extension, only one of the plugins will actually be able to use and override this modal.

      We need to evaluate if this solution can be fixed. Rather then overriding the modal a plugin would add an additional section/tab and make it a wizard, or if there is a different suitable solution.

      Currently console itself is using the extension so if a plugin or multiple plugins will use it as well, there will be a conflict and only one of them will get rendered in the modal.

      PR: https://github.com/openshift/console/pull/13825/files

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

          4.17

      How reproducible:

          Always

      Steps to Reproduce:

          1. Update two plugins to use the console.create-project-modal extension       
          2. Deploy and enable these plugin on the cluster
          3. Check the CreateProject modal
          

      Actual results:

          Only one of these plugins will get to use the extension and its code will get rendered in the modal. No error or warning is surfaced to the user.

      Expected results:

          Code of all the plugins, which use the extension should be render in the modal.

      Additional info:

          This issue was raised when discussing using this extension in the networking-console-plugin - https://docs.google.com/document/d/1WqkTPvpWMNEGlUIETiqPIt6ZEXnfWKRElBsmAs9OVE0/edit#heading=h.w0r1ru3yinqq

              rh-ee-jonjacks Jon Jackson
              openshift-crt-jira-prow OpenShift Prow Bot
              None
              None
              YaDan Pei YaDan Pei
              None
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: