Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-6865

Tab completion suggest all attributes for operations specific for list or map

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 7.1.0.DR9
    • 7.1.0.DR7
    • CLI, User Experience
    • None

    Description

      This relates to operations: map-clear, map-get, map-put, map-remove, list-clear, list-get, list-put, list-remove.
      Cli TAB completion suggest all attributes (not only lists or maps) to use with these operations.

      CLI example
      [standalone@localhost:9990 /] :list-get(name=
      launch-type                  management-minor-version     organization                 product-version              release-version              schema-locations             uuid                         
      management-major-version     name                         process-type                 profile-name                 running-mode                 server-state                 
      management-micro-version     namespaces                   product-name                 release-codename             runtime-configuration-state  suspend-state         
      

      If we execute operation with incorrect type, we get proper error message

      :list-get(name=launch-type
      {
          "outcome" => "failed",
          "failure-description" => "WFLYCTL0378: Attribute 'launch-type' is not of type 'LIST', it is type 'STRING'",
          "rolled-back" => true
      }
      

      It would enhance user experience if only applicable attributes are suggested(e.g. lists or maps).

      Attachments

        Issue Links

          Activity

            People

              jdenise@redhat.com Jean Francois Denise
              mstyk_jira Martin Styk (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: