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

[Orchestrator] Custom widgets don't load within dependencies + oneOf blocks

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Undefined Undefined
    • None
    • 1.8.0
    • Orchestrator, UI
    • None
    • False
    • Hide

      None

      Show
      None
    • False

      The dependencies + oneOf pattern is not extracting ui:* properties (like ui:widget, ui:placeholder, etc.), which is why custom widgets don't render.

      Description of problem:

      We are currently seeing an issue regarding the UI layout for the Service Details section when creating a namespace (switching between General, Tekton, Dedicated, etc.).
      We must use oneOf: We cannot use the standard dependencies or conditionals approach because it currently fails to load the widgets (e.g., ActiveTextInput, ActiveMultiSelect). oneOf is the only structure that renders these widgets correctly.
      Here is a minimal schema that shows the issue. Attaching the screenshot.

      {
      "title": "Nested Header",
      "type": "object",
      "properties": {
      "caasNamespace": {
      "title": "CaaS Namespace Configuration",
      "type": "object",
      "properties": {
      "serviceDetails": {
      "title": "Service Details",
      "type": "object",
      "description": "Select a service below. Notice the Title is used for both the Dropdown AND the Section Header.",
      "oneOf": [
      {
      "title": "General Service",
      "properties": {
      "namespaceName":

      { "type": "string", "title": "Namespace Name" }

      }
      },
      {
      "title": "Dedicated Cluster",
      "properties": {
      "clusterName":

      { "type": "string", "title": "Cluster Name" }

      }
      }
      ]
      }
      }
      }
      }
      }

              rh-ee-lprabhu Lokananda Prabhu
              pkliczew@redhat.com Piotr Kliczewski
              RHDH Frontend Plugins & UI
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: