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

Conflict in CreateProjectModal extension

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • None
    • 4.17.z
    • Management Console
    • None
    • Critical
    • None
    • False
    • Hide

      None

      Show
      None

      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
              jhadvig@redhat.com Jakub Hadvig
              YaDan Pei YaDan Pei
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: