ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Srimanth Gunturi (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AMBARI-7626) Slider View: UI should not use view parameters.
Date Fri, 03 Oct 2014 08:24:33 GMT

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

Srimanth Gunturi updated AMBARI-7626:
-------------------------------------
    Attachment: AMBARI-7626.patch

Review at https://reviews.apache.org/r/26312/

> 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)

Mime
View raw message