You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2015/05/12 01:14:00 UTC
[jira] [Commented] (AMBARI-11050) Widgets: unable to create widget,
save fails (silently)
[ https://issues.apache.org/jira/browse/AMBARI-11050?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14538845#comment-14538845 ]
Hudson commented on AMBARI-11050:
---------------------------------
SUCCESS: Integrated in Ambari-trunk-Commit #2564 (See [https://builds.apache.org/job/Ambari-trunk-Commit/2564/])
AMBARI-11050. Widgets: unable to create widget, save fails (silently). (jaimin) (jaimin: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=51475f2f9e8d972f0639311fd2f19b6ce55b507e)
* ambari-web/app/controllers/main/service/widgets/create/wizard_controller.js
* ambari-server/src/main/resources/common-services/YARN/2.1.0.2.0/YARN_widgets.json
* ambari-web/app/mixins/common/widgets/widget_mixin.js
* ambari-web/app/controllers/main/service/info/summary.js
> 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)