You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Srimanth Gunturi (JIRA)" <ji...@apache.org> on 2014/10/03 10:31:33 UTC

[jira] [Resolved] (AMBARI-7626) Slider View: UI should not use view parameters.

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

Srimanth Gunturi resolved AMBARI-7626.
--------------------------------------
    Resolution: Fixed

Committed to trunk.

> Slider View: UI should not use view parameters.
> -----------------------------------------------
>
>                 Key: AMBARI-7626
>                 URL: https://issues.apache.org/jira/browse/AMBARI-7626
>             Project: Ambari
>          Issue Type: Task
>          Components: contrib
>    Affects Versions: 1.7.0
>            Reporter: Srimanth Gunturi
>            Assignee: Srimanth Gunturi
>             Fix For: 1.7.0
>
>         Attachments: AMBARI-7626.patch
>
>
> The view framework will no longer be making view 'parameters' available in the API (ViewInstanceInfo.parameters) for non-admins. So Slider-View UI should no longer use ViewInstanceInfo.parameters information given in {{/api/v1/views/SLIDER/versions/1.0.0/instances/sv1}} path.
> However, this information will be moved to a new location - {{/api/v1/views/SLIDER/versions/1.0.0/instances/sv1/status}}. The response will be like below:
> {code}
> {
>   "version": "1.0.0",
>   "validation": [
>     {
>       "message": "HDFS server is not installed on cluster",
>       "type": "ERROR"
>     },
>     {
>       "message": "YARN server is not started on cluster",
>       "type": "ERROR"
>     }
>   ],
>   "parameters": {
>     "gangliaHost": "c6401.ambari.apache.org",
>     "gangliaClusters": "App1:8881,App2:8882"
>   }
> }
> {code}
> The {{/status}} endpoint *will have only 2 parameters* - ganglia host, and list of ganglia clusters. These will be provided only for populating dropdown in create wizard, and populating links in app page. Other parameters will not be shown to the user (security issues). 
> The {{validation}} array should be shown to the user as a list inside 1 error message area on top of the Slider Apps table. 
> The call to {{/status}} should refresh every 30 seconds. Error messages should be shown and hidden, as validation issues appear and go away in REST API response.



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