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-13593. Upgrade: UI should determine the ongoing skip failure flag based on Upgrade/skip_failures from the API.(xiwang)
Date Tue, 27 Oct 2015 23:16:41 GMT
Repository: ambari
Updated Branches:
  refs/heads/branch-2.1 663263110 -> 01257fe0a


AMBARI-13593. Upgrade: UI should determine the ongoing skip failure flag based on Upgrade/skip_failures
from the API.(xiwang)


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

Branch: refs/heads/branch-2.1
Commit: 01257fe0a5149779471f7971fb2cd483e350d88c
Parents: 6632631
Author: Xi Wang <xiwang@apache.org>
Authored: Tue Oct 27 14:59:37 2015 -0700
Committer: Xi Wang <xiwang@apache.org>
Committed: Tue Oct 27 16:16:17 2015 -0700

----------------------------------------------------------------------
 ambari-web/app/controllers/global/cluster_controller.js | 6 +++++-
 ambari-web/app/utils/ajax/ajax.js                       | 2 +-
 2 files changed, 6 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/01257fe0/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 dedeb4e..9422729 100644
--- a/ambari-web/app/controllers/global/cluster_controller.js
+++ b/ambari-web/app/controllers/global/cluster_controller.js
@@ -297,7 +297,11 @@ App.ClusterController = Em.Controller.extend({
           isDowngrade: lastUpgradeData.Upgrade.direction === 'DOWNGRADE',
           upgradeState: lastUpgradeData.Upgrade.request_status,
           upgradeType: lastUpgradeData.Upgrade.upgrade_type,
-          downgradeAllowed: lastUpgradeData.Upgrade.downgrade_allowed
+          downgradeAllowed: lastUpgradeData.Upgrade.downgrade_allowed,
+          failuresTolerance: Em.Object.create({
+            skipComponentFailures: lastUpgradeData.Upgrade.skip_failures,
+            skipSCFailures: lastUpgradeData.Upgrade.skip_service_check_failures
+          })
         });
         upgradeController.loadRepoVersionsToModel().done(function () {
           upgradeController.setDBProperty('upgradeVersion', App.RepositoryVersion.find().findProperty('repositoryVersion',
lastUpgradeData.Upgrade.to_version).get('displayName'));

http://git-wip-us.apache.org/repos/asf/ambari/blob/01257fe0/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 6255ed3..21fcf42 100644
--- a/ambari-web/app/utils/ajax/ajax.js
+++ b/ambari-web/app/utils/ajax/ajax.js
@@ -1291,7 +1291,7 @@ var urls = {
     'mock': '/data/clusters/info.json'
   },
   'cluster.load_last_upgrade': {
-    'real': '/clusters/{clusterName}/upgrades?fields=Upgrade/request_status,Upgrade/request_id,Upgrade/to_version,Upgrade/direction,Upgrade/upgrade_type,Upgrade/downgrade_allowed',
+    'real': '/clusters/{clusterName}/upgrades?fields=Upgrade/request_status,Upgrade/request_id,Upgrade/to_version,Upgrade/direction,Upgrade/upgrade_type,Upgrade/downgrade_allowed,Upgrade/skip_failures,Upgrade/skip_service_check_failures',
     'mock': '/data/stack_versions/upgrades.json'
   },
   'cluster.update_upgrade_version': {


Mime
View raw message