ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jaimin D Jetly (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AMBARI-11050) Widgets: unable to create widget, save fails (silently)
Date Mon, 11 May 2015 18:47:02 GMT

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

Jaimin D Jetly updated AMBARI-11050:
------------------------------------
    Attachment: AMBARI-11050.patch

> Widgets: unable to create widget, save fails (silently)
> -------------------------------------------------------
>
>                 Key: AMBARI-11050
>                 URL: https://issues.apache.org/jira/browse/AMBARI-11050
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-web
>    Affects Versions: 2.1.0
>            Reporter: Jaimin D Jetly
>            Assignee: Jaimin D Jetly
>             Fix For: 2.1.0
>
>         Attachments: AMBARI-11050.patch
>
>
> Attempted to save a widget. After clicking "Complete", dialog dismissed but doesn't save.
> Looks like API error.
> In addition to fixing the save bug, we need to inform the user of save errors and not
fail silently.
> {code}
> POST
> http://c6401.ambari.apache.org:8080/api/v1/clusters/MyCluster/widgets/
> {"WidgetInfo":{"widget_name":"Heloo World","widget_type":"GAUGE","description":"asda
ds ads asdas","scope"
> :"USER","author":"admin","metrics":[{"name":"FSDatasetState.org.apache.hadoop.hdfs.server.datanode.fsdataset
> .impl.FsDatasetImpl.DfsUsed._sum","metric_path":"metrics/dfs/datanode/DfsUsed._sum"}],"values":[{"name"
> :"","value":"${FSDatasetState.org.apache.hadoop.hdfs.server.datanode.fsdataset.impl.FsDatasetImpl.DfsUsed
> ._sum}"}],"properties":{"warning_threshold":"0.7","error_threshold":"0.9"},"display_name":"Heloo
World"
> }}
> {code}
> response:
> {code}
> {
>   "status" : 400,
>   "message" : "The properties [WidgetInfo/display_name] specified in the request or predicate
are not
>  supported for the resource type Widget."
> }
> {code}



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

Mime
View raw message