ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jonathanhur...@apache.org
Subject [29/39] git commit: AMBARI-7226. Ambari Web performance issues when there are a large number of users. (yusaku)
Date Wed, 10 Sep 2014 13:03:41 GMT
AMBARI-7226. Ambari Web performance issues when there are a large number of users. (yusaku)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/4f624444
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/4f624444
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/4f624444

Branch: refs/heads/branch-alerts-dev
Commit: 4f624444a247e81dbe80dc484891effe28e418fa
Parents: 17b48bf
Author: Yusaku Sako <yusaku@hortonworks.com>
Authored: Tue Sep 9 15:24:26 2014 -0700
Committer: Yusaku Sako <yusaku@hortonworks.com>
Committed: Tue Sep 9 15:35:56 2014 -0700

----------------------------------------------------------------------
 .../controllers/global/cluster_controller.js    | 42 --------------------
 1 file changed, 42 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/4f624444/ambari-web/app/controllers/global/cluster_controller.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/controllers/global/cluster_controller.js b/ambari-web/app/controllers/global/cluster_controller.js
index 96df319..f40fbc8 100644
--- a/ambari-web/app/controllers/global/cluster_controller.js
+++ b/ambari-web/app/controllers/global/cluster_controller.js
@@ -78,7 +78,6 @@ App.ClusterController = Em.Controller.extend({
     'cluster': false,
     'clusterStatus': false,
     'racks': false,
-    'users': false,
     'componentConfigs': false,
     'componentsState': false
   }),
@@ -291,8 +290,6 @@ App.ClusterController = Em.Controller.extend({
       });
     }
 
-    this.loadUsersInfo();
-
     /**
      * Order of loading:
      * 1. request for service components supported by stack
@@ -386,45 +383,6 @@ App.ClusterController = Em.Controller.extend({
     console.warn('can\'t get ambari properties');
   },
 
-  /**
-   * Load info about users.
-   **/
-  loadUsersInfo: function() {
-    return App.ajax.send({
-      name: 'users.all',
-      sender: this,
-      success: 'loadUsersSuccess',
-      error: 'loadUsersError'
-    });
-  },
-
-  loadUsersSuccess: function(data) {
-    App.ajax.send({
-      name: 'users.privileges',
-      sender: this,
-      data: {
-        users: data
-      },
-      success: 'loadUsersPrivilegesSuccess'
-    });
-  },
-
-  loadUsersError: function() {
-    this.updateLoadStatus('users');
-  },
-  /**
-   * Load privileges, check relations between user and privilege,
-   * map users using <code>App.usersMappper</code>.
-   **/
-  loadUsersPrivilegesSuccess: function(data, opt, params) {
-    params.users.items.forEach(function(user) {
-      user.privileges = {};
-      user.privileges.items = data.items.filterProperty('PrivilegeInfo.principal_name', user.Users.user_name);
-    });
-    App.usersMapper.map(params.users);
-    this.updateLoadStatus('users');
-  },
-
   updateClusterData: function () {
     var testUrl = App.get('isHadoop2Stack') ? '/data/clusters/HDP2/cluster.json' : '/data/clusters/cluster.json';
     var clusterUrl = this.getUrl(testUrl, '?fields=Clusters');


Mime
View raw message