ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alexantone...@apache.org
Subject ambari git commit: AMBARI-12395. Loading Admin > Stacks and Versions > Versions is extremely slow (alexantonenko)
Date Tue, 21 Jul 2015 14:34:53 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk 82589fc4d -> a30d31795


AMBARI-12395. Loading Admin > Stacks and Versions > Versions is extremely slow (alexantonenko)


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

Branch: refs/heads/trunk
Commit: a30d31795e2ed830e10e6dc0cc78a9f1191cef43
Parents: 82589fc
Author: Alex Antonenko <hiveww@gmail.com>
Authored: Tue Jul 21 17:34:46 2015 +0300
Committer: Alex Antonenko <hiveww@gmail.com>
Committed: Tue Jul 21 17:34:46 2015 +0300

----------------------------------------------------------------------
 ambari-web/app/views/main/admin/stack_upgrade/versions_view.js | 2 +-
 .../test/views/main/admin/stack_upgrade/version_view_test.js   | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/a30d3179/ambari-web/app/views/main/admin/stack_upgrade/versions_view.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/views/main/admin/stack_upgrade/versions_view.js b/ambari-web/app/views/main/admin/stack_upgrade/versions_view.js
index 195320f..0e21794 100644
--- a/ambari-web/app/views/main/admin/stack_upgrade/versions_view.js
+++ b/ambari-web/app/views/main/admin/stack_upgrade/versions_view.js
@@ -195,7 +195,7 @@ App.MainAdminStackVersionsView = Em.View.extend({
    * load ClusterStackVersions data
    */
   willInsertElement: function () {
-    this.doPolling();
+    this.poll();
   },
 
   /**

http://git-wip-us.apache.org/repos/asf/ambari/blob/a30d3179/ambari-web/test/views/main/admin/stack_upgrade/version_view_test.js
----------------------------------------------------------------------
diff --git a/ambari-web/test/views/main/admin/stack_upgrade/version_view_test.js b/ambari-web/test/views/main/admin/stack_upgrade/version_view_test.js
index 8090482..a46cd0c 100644
--- a/ambari-web/test/views/main/admin/stack_upgrade/version_view_test.js
+++ b/ambari-web/test/views/main/admin/stack_upgrade/version_view_test.js
@@ -318,14 +318,14 @@ describe('App.mainAdminStackVersionsView', function () {
 
   describe("#willInsertElement()", function() {
     before(function () {
-      sinon.stub(view, 'doPolling', Em.K);
+      sinon.stub(view, 'poll', Em.K);
     });
     after(function () {
-      view.doPolling.restore();
+      view.poll.restore();
     });
     it("", function() {
       view.willInsertElement();
-      expect(view.doPolling.calledOnce).to.be.true;
+      expect(view.poll.calledOnce).to.be.true;
     });
   });
 


Mime
View raw message