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 0A19317AD7 for ; Tue, 5 May 2015 10:30:00 +0000 (UTC) Received: (qmail 27442 invoked by uid 500); 5 May 2015 10:29:59 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 27405 invoked by uid 500); 5 May 2015 10:29:59 -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 27384 invoked by uid 99); 5 May 2015 10:29:59 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 May 2015 10:29:59 +0000 Date: Tue, 5 May 2015 10:29:59 +0000 (UTC) From: "Hadoop QA (JIRA)" To: dev@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AMBARI-10925) Create/Clone widget: widget created has malformed value array MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AMBARI-10925?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14528233#comment-14528233 ] Hadoop QA commented on AMBARI-10925: ------------------------------------ {color:red}-1 overall{color}. Here are the results of testing the latest attachment http://issues.apache.org/jira/secure/attachment/12730469/AMBARI-10925.patch against trunk revision . {color:red}-1 patch{color}. Top-level trunk compilation may be broken. Console output: https://builds.apache.org/job/Ambari-trunk-test-patch/2614//console This message is automatically generated. > Create/Clone widget: widget created has malformed value array > ------------------------------------------------------------- > > Key: AMBARI-10925 > URL: https://issues.apache.org/jira/browse/AMBARI-10925 > Project: Ambari > Issue Type: Bug > Components: ambari-web > Affects Versions: 2.1.0 > Reporter: Andrii Tkach > Assignee: Andrii Tkach > Fix For: 2.1.0 > > Attachments: AMBARI-10925.patch > > > Following is the newly created widget definition: > {code} > { > "href" : "http://104.196.89.55:8080/api/v1/clusters/c1/widgets/45", > "WidgetInfo" : { > "author" : "admin", > "cluster_name" : "c1", > "description" : "New number widget", > "display_name" : "New number widget", > "id" : 45, > "metrics" : "[{\"service_name\":\"HBASE\",\"component_name\":\"HBASE_REGIONSERVER\",\"name\":\"disk_total\",\"metric_path\":\"metrics/disk/disk_total\"}]", > "properties" : "{\"display_unit\":\"\",\"error_threshold\":\"20\",\"warning_threshold\":\"10\"}", > "scope" : "USER", > "time_created" : 1430342893444, > "values" : "[{\"computedValue\":\"9.72\",\"value\":\"${disk_total}\"}]", > "widget_name" : "New number widget", > "widget_type" : "NUMBER" > } > } > {code} > {noformat} > values = [{\"computedValue\":\"9.72\",\"value\":\"${disk_total}\"}] which is wrong > {noformat} > {noformat} > It should be values = [{\"name\":\"\",\"value\":\"${disk_total}\"}] for number/gauge widget type. > {noformat} > For Graph name should be the label name. -- This message was sent by Atlassian JIRA (v6.3.4#6332)