Oleg Nechiporenko created AMBARI-10158:
------------------------------------------

             Summary: Implement time-interval spinner widget for config
                 Key: AMBARI-10158
                 URL: https://issues.apache.org/jira/browse/AMBARI-10158
             Project: Ambari
          Issue Type: Task
          Components: ambari-web
    Affects Versions: 2.1.0
            Reporter: Oleg Nechiporenko
            Assignee: Oleg Nechiporenko
             Fix For: 2.1.0


Multiple configs have time interval which is saved as milliseconds. However we 
need to use the theme to create a time-interval-spinner control which will 
allow user to set milliseconds using a more understandable hours/mins/seconds 
spinners.

The configuration will be defined in the stack as 
{code}
{
  "href" : 
"http://c6401:8080/api/v1/stacks/HDP/versions/2.2/services/HBASE/configurations/hbase.hregion.majorcompaction";,
  "StackConfigurations" : {
    "final" : "false",
    "property_description" : "Time between major compactions",
    "property_name" : "hbase.hregion.majorcompaction",
    "property_type" : [ ],
    "property_value" : "604800000",// Recommended
    "property_value_attributes": {
        "type": "int",
        "minimum": "0",
        "maximum": "2592000000", // 30 days
        "unit": "milliseconds",
    },
    "service_name" : "HBASE",
    "stack_name" : "HDP",
    "stack_version" : "2.2",
    "type" : "hbase-site.xml"
  }
}
{code}

The theme will have the widget defined as 
{code}
 "configs": [
        {
          "config": "hive-site/hive.exec.orc.default.compress",
          "widget": {
             "type": "time-interval-spinner",
             "units": [
               {
                 "unit": "days,hours,minutes"
               }
             ]
          }
        }
      ]
{code}



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

Reply via email to