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-22206. Downgrade UI shown Null when on Patch revert (alexantonenko)
Date Wed, 11 Oct 2017 16:04:00 GMT
Repository: ambari
Updated Branches:
  refs/heads/branch-2.6 3201a14f4 -> 589b7499e


AMBARI-22206. Downgrade UI shown Null when on Patch revert (alexantonenko)


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

Branch: refs/heads/branch-2.6
Commit: 589b7499ebcd65bbad4eed1ef567e7dd6749cfc0
Parents: 3201a14
Author: Alex Antonenko <aantonenko@hortonworks.com>
Authored: Wed Oct 11 19:03:44 2017 +0300
Committer: Alex Antonenko <aantonenko@hortonworks.com>
Committed: Wed Oct 11 19:03:44 2017 +0300

----------------------------------------------------------------------
 .../app/controllers/main/admin/stack_and_upgrade_controller.js   | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/589b7499/ambari-web/app/controllers/main/admin/stack_and_upgrade_controller.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/controllers/main/admin/stack_and_upgrade_controller.js b/ambari-web/app/controllers/main/admin/stack_and_upgrade_controller.js
index 5e60f83..fc2c7bc 100644
--- a/ambari-web/app/controllers/main/admin/stack_and_upgrade_controller.js
+++ b/ambari-web/app/controllers/main/admin/stack_and_upgrade_controller.js
@@ -2124,9 +2124,7 @@ App.MainAdminStackAndUpgradeController = Em.Controller.extend(App.LocalStorage,
     });
     this.loadRepoVersionsToModel().done(function () {
       var toVersion = App.RepositoryVersion.find().findProperty('repositoryVersion', lastUpgradeData.Upgrade.associated_version);
-      if (!isDowngrade) {
-        self.setDBProperty('upgradeVersion', toVersion && toVersion.get('displayName'));
-      }
+      self.setDBProperty('upgradeVersion', toVersion && toVersion.get('displayName'));
       self.initDBProperties();
       self.loadUpgradeData(true);
     });


Mime
View raw message