You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by al...@apache.org on 2017/05/23 14:15:28 UTC

ambari git commit: AMBARI-21103. Creating a Downgrade From the Web Client Is Passing an Unsupported Property (alexantonenko)

Repository: ambari
Updated Branches:
  refs/heads/branch-feature-AMBARI-12556 11325b7c9 -> a436eb2f6


AMBARI-21103. Creating a Downgrade From the Web Client Is Passing an Unsupported Property (alexantonenko)


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

Branch: refs/heads/branch-feature-AMBARI-12556
Commit: a436eb2f6f5b7c36d370bcc24de6edafd35ab72a
Parents: 11325b7
Author: Alex Antonenko <hi...@gmail.com>
Authored: Tue May 23 17:08:03 2017 +0300
Committer: Alex Antonenko <hi...@gmail.com>
Committed: Tue May 23 17:08:03 2017 +0300

----------------------------------------------------------------------
 .../app/controllers/main/admin/stack_and_upgrade_controller.js     | 1 -
 ambari-web/app/utils/ajax/ajax.js                                  | 2 --
 .../controllers/main/admin/stack_and_upgrade_controller_test.js    | 1 -
 3 files changed, 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/a436eb2f/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 8c97d7b..a676f7429 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
@@ -734,7 +734,6 @@ App.MainAdminStackAndUpgradeController = Em.Controller.extend(App.LocalStorage,
       name: 'admin.downgrade.start',
       sender: this,
       data: {
-        from: App.RepositoryVersion.find().findProperty('displayName', this.get('upgradeVersion')).get('repositoryVersion'),
         value: currentVersion.repository_version,
         label: currentVersion.repository_name,
         id: currentVersion.id,

http://git-wip-us.apache.org/repos/asf/ambari/blob/a436eb2f/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 888dee3..929214c 100644
--- a/ambari-web/app/utils/ajax/ajax.js
+++ b/ambari-web/app/utils/ajax/ajax.js
@@ -1730,8 +1730,6 @@ var urls = {
       return {
         data: JSON.stringify({
           "Upgrade": {
-            "from_version": data.from,
-            "repository_version_id": data.id,
             "upgrade_type": data.upgradeType,
             "direction": "DOWNGRADE"
           }

http://git-wip-us.apache.org/repos/asf/ambari/blob/a436eb2f/ambari-web/test/controllers/main/admin/stack_and_upgrade_controller_test.js
----------------------------------------------------------------------
diff --git a/ambari-web/test/controllers/main/admin/stack_and_upgrade_controller_test.js b/ambari-web/test/controllers/main/admin/stack_and_upgrade_controller_test.js
index 698331e..4585991 100644
--- a/ambari-web/test/controllers/main/admin/stack_and_upgrade_controller_test.js
+++ b/ambari-web/test/controllers/main/admin/stack_and_upgrade_controller_test.js
@@ -1143,7 +1143,6 @@ describe('App.MainAdminStackAndUpgradeController', function() {
 
     it('request-data is valid', function () {
       expect(this.callArgs.data).to.eql({
-        from: '2.3',
         id: '1',
         value: '2.2',
         label: 'HDP-2.2',