[
https://issues.apache.org/jira/browse/AMBARI-10925?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14528376#comment-14528376
]
Hudson commented on AMBARI-10925:
---------------------------------
FAILURE: Integrated in Ambari-trunk-Commit #2514 (See
[https://builds.apache.org/job/Ambari-trunk-Commit/2514/])
AMBARI-10925 Create/Clone widget: widget created has malformed value array.
(atkach) (atkach:
http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=237802151037edbe0a2cb4529d27b30451e80e1e)
* ambari-web/app/controllers/main/service/widgets/create/step2_controller.js
* ambari-web/app/controllers/main/service/widgets/create/step3_controller.js
> 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)