ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xiw...@apache.org
Subject ambari git commit: AMBARI-17698. Button to restart services with stale configs is not functional.(xiwang)
Date Wed, 13 Jul 2016 21:55:49 GMT
Repository: ambari
Updated Branches:
  refs/heads/branch-2.4 e3a26f57f -> e7f225e54


AMBARI-17698. Button to restart services with stale configs is not functional.(xiwang)


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

Branch: refs/heads/branch-2.4
Commit: e7f225e5468b59677b79f0e40eaa84a3ea69f277
Parents: e3a26f5
Author: Xi Wang <xiwang@apache.org>
Authored: Wed Jul 13 14:40:49 2016 -0700
Committer: Xi Wang <xiwang@apache.org>
Committed: Wed Jul 13 14:55:15 2016 -0700

----------------------------------------------------------------------
 ambari-web/app/controllers/main/service.js | 6 ++++--
 ambari-web/app/utils/ajax/ajax.js          | 2 +-
 2 files changed, 5 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/e7f225e5/ambari-web/app/controllers/main/service.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/controllers/main/service.js b/ambari-web/app/controllers/main/service.js
index 7d9b737..7fe5b68 100644
--- a/ambari-web/app/controllers/main/service.js
+++ b/ambari-web/app/controllers/main/service.js
@@ -333,7 +333,7 @@ App.MainServiceController = Em.ArrayController.extend({
         }
       ]
     };
-
+    
     if (isYARNQueueRefreshRequired) {
       batches = [
         {
@@ -375,7 +375,9 @@ App.MainServiceController = Em.ArrayController.extend({
       App.ajax.send({
         name: 'request.post',
         sender: this,
-        data: ajaxData,
+        data: {
+          data: ajaxData
+        },
         success: 'restartAllRequiredSuccessCallback'
       });
     }

http://git-wip-us.apache.org/repos/asf/ambari/blob/e7f225e5/ambari-web/app/utils/ajax/ajax.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/utils/ajax/ajax.js b/ambari-web/app/utils/ajax/ajax.js
index 677c609..e432e0c 100644
--- a/ambari-web/app/utils/ajax/ajax.js
+++ b/ambari-web/app/utils/ajax/ajax.js
@@ -2302,7 +2302,7 @@ var urls = {
   'request.post': {
     'real': "/clusters/{clusterName}/requests",
     'mock': "",
-    'format': function () {
+    'format': function (data) {
       return {
         type: 'POST',
         data: JSON.stringify(data.data)


Mime
View raw message