You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Oleg Nechiporenko (JIRA)" <ji...@apache.org> on 2015/03/18 17:04:38 UTC

[jira] [Updated] (AMBARI-10121) Implement 'list' UI control

     [ https://issues.apache.org/jira/browse/AMBARI-10121?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Oleg Nechiporenko updated AMBARI-10121:
---------------------------------------
    Attachment: AMBARI-10121.patch

> Implement 'list' UI control
> ---------------------------
>
>                 Key: AMBARI-10121
>                 URL: https://issues.apache.org/jira/browse/AMBARI-10121
>             Project: Ambari
>          Issue Type: Task
>          Components: ambari-web
>    Affects Versions: 2.1.0
>            Reporter: Oleg Nechiporenko
>            Assignee: Oleg Nechiporenko
>             Fix For: 2.1.0
>
>         Attachments: AMBARI-10121.patch
>
>
> Some configs should be shown in UI as a 'list' control. These configs are identified in the service's theme as below
> {code}
>      "configs": [
>         {
>           "config": "hive-site/hive.exec.orc.default.compress",
>           "widget": {
>              "type": "list"
>           }
>         }
>       ]
> {code}
> Such a config will have a {{value-list}} type value which will have other attributes like selection cardinality.
> {code}
> {
>   "href" : "http://c6401:8080/api/v1/stacks/HDP/versions/2.2/services/HIVE/configurations/hive.exec.orc.default.compress",
>   "StackConfigurations" : {
>     "final" : "false",
>     "property_description" : "Define the default compression codec for ORC file",
>     "property_name" : "hive.exec.orc.default.compress",
>     "property_type" : [ ],
>     "property_value" : "ZLIB",
>     "property_value_attributes": {
>         "type": "value-list",
>         "entries": ["ZLIB", "SNAPPY"],
>         "entry_labels": ["zlib Compression Library", "Snappy Compression Library"],
>         "entry_descriptions": ["zlib is a popular …", "Snappy library allows…"],
>         "entries_editable": "false",
>         "selection_cardinality": "1" // 0+, 1+, etc.
>     },
>     "service_name" : "HIVE",
>     "stack_name" : "HDP",
>     "stack_version" : "2.2",
>     "type" : "hive-site.xml"
>   }
> }
> {code}
> The list should show the display values along with their description when hovered/selected. Also the ultimate comma-separated-value should be shown as a tooltip on the list. Selecting entries in order should generate a similar order CSV. So select entries B-A-C should generate value "B,A,C".



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)