ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Srimanth Gunturi (JIRA)" <>
Subject [jira] [Created] (AMBARI-7626) Slider View: UI should not use view parameters.
Date Fri, 03 Oct 2014 08:19:34 GMT
Srimanth Gunturi created AMBARI-7626:

             Summary: Slider View: UI should not use view parameters.
                 Key: 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

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:
  "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": "",
    "gangliaClusters": "App1:8881,App2:8882"

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

View raw message