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/04/21 06:23:17 UTC

[1/2] ambari git commit: AMBARI-20806. Upgrade Pause button should not show when the Upgrade is already Paused (alexantonenko)

Repository: ambari
Updated Branches:
  refs/heads/trunk ad4e11cc0 -> 836c78995


AMBARI-20806. Upgrade Pause button should not show when the Upgrade is already Paused (alexantonenko)


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

Branch: refs/heads/trunk
Commit: 836c789956b4087f5f6cf30c3dc0d333e702c72a
Parents: d98db01
Author: Alex Antonenko <hi...@gmail.com>
Authored: Thu Apr 20 19:02:05 2017 +0300
Committer: Alex Antonenko <hi...@gmail.com>
Committed: Fri Apr 21 09:23:13 2017 +0300

----------------------------------------------------------------------
 .../admin/stack_upgrade/stack_upgrade_wizard.hbs    | 16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/836c7899/ambari-web/app/templates/main/admin/stack_upgrade/stack_upgrade_wizard.hbs
----------------------------------------------------------------------
diff --git a/ambari-web/app/templates/main/admin/stack_upgrade/stack_upgrade_wizard.hbs b/ambari-web/app/templates/main/admin/stack_upgrade/stack_upgrade_wizard.hbs
index b2e8991..6fceeb1 100644
--- a/ambari-web/app/templates/main/admin/stack_upgrade/stack_upgrade_wizard.hbs
+++ b/ambari-web/app/templates/main/admin/stack_upgrade/stack_upgrade_wizard.hbs
@@ -39,13 +39,15 @@
     {{#if view.isLoaded}}
       <div>
         <div class="row">
-          {{#if isDowngrade}}
-            <button
-              class="btn btn-default" {{action confirmPauseDowngrade target="view"}}>{{t admin.stackUpgrade.pauseDowngrade}}</button>
-          {{else}}
-            <button
-              class="btn btn-default" {{action confirmPauseUpgrade target="view"}}>{{t admin.stackUpgrade.pauseUpgrade}}</button>
-          {{/if}}
+          {{#unless App.upgradeSuspended}}
+              {{#if isDowngrade}}
+                <button
+                  class="btn btn-default" {{action confirmPauseDowngrade target="view"}}>{{t admin.stackUpgrade.pauseDowngrade}}</button>
+              {{else}}
+                <button
+                  class="btn btn-default" {{action confirmPauseUpgrade target="view"}}>{{t admin.stackUpgrade.pauseUpgrade}}</button>
+              {{/if}}
+          {{/unless}}
         </div>
         {{#if view.runningItem}}
           <div class="panel panel-default details-box row">


[2/2] ambari git commit: AMBARI-20759. The Web Client Upgrade Wizard Does Not Wait Long Enough When Creating a Large Upgrade (alexantonenko)

Posted by al...@apache.org.
AMBARI-20759. The Web Client Upgrade Wizard Does Not Wait Long Enough When Creating a Large Upgrade (alexantonenko)


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

Branch: refs/heads/trunk
Commit: d98db012578a2ab01430d21ac4c8ef52342e0298
Parents: ad4e11c
Author: Alex Antonenko <hi...@gmail.com>
Authored: Fri Apr 14 19:17:27 2017 +0300
Committer: Alex Antonenko <hi...@gmail.com>
Committed: Fri Apr 21 09:23:13 2017 +0300

----------------------------------------------------------------------
 ambari-web/app/utils/ajax/ajax.js | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/d98db012/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 2b5e52a..5d7108f 100644
--- a/ambari-web/app/utils/ajax/ajax.js
+++ b/ambari-web/app/utils/ajax/ajax.js
@@ -1707,6 +1707,7 @@ var urls = {
     'type': 'POST',
     'format': function (data) {
       return {
+        timeout : 600000,
         data: JSON.stringify({
           "Upgrade": {
             "repository_version": data.value,