Uploaded image for project: 'OpenShift Dev Console'
  1. OpenShift Dev Console
  2. ODC-5777

Selection issue when inserting YAML snippets

XMLWordPrintable

    • False
    • False
    • 0
    • Undefined
    • Not Supported
    • ODC Sprint 200
    • Low

      Description of problem:

      When the user inserts a YAML snippet the new snippet is tried to be selected but the selection doesn't match the new snippet.

      Prerequisites (if any, like setup, operators/versions):

      No additional prerequisites required

      Steps to Reproduce

      1. Open search
      2. Search for resource Console, apiVersion operator.openshift.io/v1, select it
      3. Select resource "cluster" and open the YAML tab (direct link: https://cluster/k8s/cluster/operator.openshift.io~v1~Console/cluster/yaml)
      4. Open the sidebar and switch to the "Snippets" tab
      5. Insert the available snippets at different intention levels

      Actual results:

      1. Selection after inserting the YAML snippet doesn't match the new content.
      2. Multiple insertions change the YAML snippet and break the input.

      Expected results:

      1. Selection after inserting the YAML snippet should match the new content.
      2. Multiple insertions should not change the YAML.

      Reproducibility (Always/Intermittent/Only Once):

      Always

      Build Details:

      OpenShift Console 4.7 or console master (tested with commit 2426fa124e8a7d59e80846c84ab69a6d6e2a0e9b)

      Additional info:

      None

              cjerolim Christoph Jerolimov
              cjerolim Christoph Jerolimov
              Gajanan More Gajanan More (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: