Return-Path: X-Original-To: apmail-ambari-dev-archive@www.apache.org Delivered-To: apmail-ambari-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E510E17D6F for ; Fri, 20 Mar 2015 15:42:38 +0000 (UTC) Received: (qmail 71581 invoked by uid 500); 20 Mar 2015 15:42:38 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 71466 invoked by uid 500); 20 Mar 2015 15:42:38 -0000 Mailing-List: contact dev-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ambari.apache.org Delivered-To: mailing list dev@ambari.apache.org Received: (qmail 71224 invoked by uid 99); 20 Mar 2015 15:42:38 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Mar 2015 15:42:38 +0000 Date: Fri, 20 Mar 2015 15:42:38 +0000 (UTC) From: "Oleg Nechiporenko (JIRA)" To: dev@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (AMBARI-10158) Implement time-interval spinner widget for config MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 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)