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 2014/12/08 19:04:30 UTC
[1/3] ambari git commit: AMBARI-8583. Ambari-Web build generates
incorrect 'app.js.map' file (alexantonenko)
Repository: ambari
Updated Branches:
refs/heads/trunk dcbdcdfa7 -> e222d2f5d
AMBARI-8583. Ambari-Web build generates incorrect 'app.js.map' file (alexantonenko)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/2e7b019e
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/2e7b019e
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/2e7b019e
Branch: refs/heads/trunk
Commit: 2e7b019e300caea925a056b3f4e5a4fcab1fb05e
Parents: dcbdcdf
Author: Alex Antonenko <hi...@gmail.com>
Authored: Mon Dec 8 18:02:26 2014 +0200
Committer: Alex Antonenko <hi...@gmail.com>
Committed: Mon Dec 8 20:04:10 2014 +0200
----------------------------------------------------------------------
ambari-web/pom.xml | 12 ++++++------
ambari-web/set-ambari-version.sh | 2 +-
ambari-web/set-default-stack-version.sh | 4 ++--
ambari-web/toggle-experimental.sh | 2 +-
4 files changed, 10 insertions(+), 10 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/2e7b019e/ambari-web/pom.xml
----------------------------------------------------------------------
diff --git a/ambari-web/pom.xml b/ambari-web/pom.xml
index db6951e..628bd36 100644
--- a/ambari-web/pom.xml
+++ b/ambari-web/pom.xml
@@ -117,12 +117,6 @@
</goals>
<configuration>
<target name="ambari-web-compile">
- <exec dir="${basedir}" executable="${executable.npm}" failonerror="true">
- <arg value="${args.npm.install}"/>
- </exec>
- <exec dir="${basedir}" executable="${executable.brunch}" failonerror="true">
- <arg value="${args.brunch.build}"/>
- </exec>
<!-- sets Ambari version to make it accessible from code -->
<exec dir="${basedir}" executable="${executable.shell}" failonerror="true">
<arg value="${basedir}${dirsep}set-ambari-version.${fileextension.shell}"/>
@@ -138,6 +132,12 @@
<arg value="${basedir}${dirsep}toggle-experimental.${fileextension.shell}"/>
<arg value="${enableExperimental}"/>
</exec>
+ <exec dir="${basedir}" executable="${executable.npm}" failonerror="true">
+ <arg value="${args.npm.install}"/>
+ </exec>
+ <exec dir="${basedir}" executable="${executable.brunch}" failonerror="true">
+ <arg value="${args.brunch.build}"/>
+ </exec>
</target>
</configuration>
</execution>
http://git-wip-us.apache.org/repos/asf/ambari/blob/2e7b019e/ambari-web/set-ambari-version.sh
----------------------------------------------------------------------
diff --git a/ambari-web/set-ambari-version.sh b/ambari-web/set-ambari-version.sh
index e1cead4..a5eb907 100644
--- a/ambari-web/set-ambari-version.sh
+++ b/ambari-web/set-ambari-version.sh
@@ -21,6 +21,6 @@
if [ "$1" != '${ambariVersion}' ]
then
echo "Setting Ambari version to $1"
- sed "s/App.version.*=.*;/App.version = '$1';/" public/javascripts/app.js > public/javascripts/tmp.js; mv public/javascripts/tmp.js public/javascripts/app.js
+ find app -type f -name "*.js" -exec sed -i "s/App.version.*=.*;/App.version = '$1';/" {} \;
fi
http://git-wip-us.apache.org/repos/asf/ambari/blob/2e7b019e/ambari-web/set-default-stack-version.sh
----------------------------------------------------------------------
diff --git a/ambari-web/set-default-stack-version.sh b/ambari-web/set-default-stack-version.sh
index c95e485..9eb8147 100644
--- a/ambari-web/set-default-stack-version.sh
+++ b/ambari-web/set-default-stack-version.sh
@@ -23,6 +23,6 @@ then
STACK=${1%-*}
VERSION=${1##*-}
echo "Setting default stack to '$STACK' and version to '$VERSION'"
- sed "s/App.defaultStackVersion.*=.*;/App.defaultStackVersion = '${STACK}-${VERSION}';/" public/javascripts/app.js > public/javascripts/tmp.js; mv public/javascripts/tmp.js public/javascripts/app.js
- sed "s/App.defaultLocalStackVersion.*=.*;/App.defaultLocalStackVersion = '${STACK}Local-${VERSION}';/" public/javascripts/app.js > public/javascripts/tmp.js; mv public/javascripts/tmp.js public/javascripts/app.js
+ find app -type f -name "*.js" -exec sed -i "s/App.defaultStackVersion.*=.*;/App.defaultStackVersion = '${STACK}-${VERSION}';/" {} \;
+ find app -type f -name "*.js" -exec sed -i "s/App.defaultLocalStackVersion.*=.*;/App.defaultLocalStackVersion = '${STACK}Local-${VERSION}';/" {} \;
fi
http://git-wip-us.apache.org/repos/asf/ambari/blob/2e7b019e/ambari-web/toggle-experimental.sh
----------------------------------------------------------------------
diff --git a/ambari-web/toggle-experimental.sh b/ambari-web/toggle-experimental.sh
index eda05c6..a320acb 100644
--- a/ambari-web/toggle-experimental.sh
+++ b/ambari-web/toggle-experimental.sh
@@ -21,5 +21,5 @@
if [ "$1" == "true" ]
then
echo 'Enabling experimental features...'
- sed 's/App.enableExperimental.*=.*;/App.enableExperimental = true;/' public/javascripts/app.js > public/javascripts/tmp.js; mv public/javascripts/tmp.js public/javascripts/app.js
+ find app -type f -name "*.js" -exec sed -i "s/App.enableExperimental.*=.*;/App.enableExperimental = true;/" {} \;
fi
[2/3] ambari git commit: AMBARI-8584. "Remove host" action on
'Confirm Hosts' step after page refresh does not work (alexantonenko)
Posted by al...@apache.org.
AMBARI-8584. "Remove host" action on 'Confirm Hosts' step after page refresh does not work (alexantonenko)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/5f2c1a21
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/5f2c1a21
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/5f2c1a21
Branch: refs/heads/trunk
Commit: 5f2c1a2178dc703c9a4a7de1883fcf2afb7fe8a1
Parents: 2e7b019
Author: Alex Antonenko <hi...@gmail.com>
Authored: Mon Dec 8 18:40:00 2014 +0200
Committer: Alex Antonenko <hi...@gmail.com>
Committed: Mon Dec 8 20:04:11 2014 +0200
----------------------------------------------------------------------
ambari-web/app/controllers/installer.js | 2 +-
ambari-web/app/controllers/main/host/add_controller.js | 2 +-
ambari-web/test/controllers/main/host/add_controller_test.js | 6 +++---
3 files changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/5f2c1a21/ambari-web/app/controllers/installer.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/controllers/installer.js b/ambari-web/app/controllers/installer.js
index 73cfb62..8ae7225 100644
--- a/ambari-web/app/controllers/installer.js
+++ b/ambari-web/app/controllers/installer.js
@@ -113,7 +113,7 @@ App.InstallerController = App.WizardController.extend({
removeHosts: function (hosts) {
var dbHosts = this.getDBProperty('hosts');
hosts.forEach(function (_hostInfo) {
- var host = _hostInfo.hostName;
+ var host = _hostInfo.name;
delete dbHosts[host];
});
this.setDBProperty('hosts', dbHosts);
http://git-wip-us.apache.org/repos/asf/ambari/blob/5f2c1a21/ambari-web/app/controllers/main/host/add_controller.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/controllers/main/host/add_controller.js b/ambari-web/app/controllers/main/host/add_controller.js
index 9945aa3..aebb95e 100644
--- a/ambari-web/app/controllers/main/host/add_controller.js
+++ b/ambari-web/app/controllers/main/host/add_controller.js
@@ -85,7 +85,7 @@ App.AddHostController = App.WizardController.extend({
removeHosts: function (hosts) {
var dbHosts = this.getDBProperty('hosts');
hosts.forEach(function (_hostInfo) {
- var host = _hostInfo.hostName;
+ var host = _hostInfo.name;
delete dbHosts[host];
});
this.setDBProperty('hosts', dbHosts);
http://git-wip-us.apache.org/repos/asf/ambari/blob/5f2c1a21/ambari-web/test/controllers/main/host/add_controller_test.js
----------------------------------------------------------------------
diff --git a/ambari-web/test/controllers/main/host/add_controller_test.js b/ambari-web/test/controllers/main/host/add_controller_test.js
index a16275e..09de2cf 100644
--- a/ambari-web/test/controllers/main/host/add_controller_test.js
+++ b/ambari-web/test/controllers/main/host/add_controller_test.js
@@ -51,7 +51,7 @@ describe('App.AddHostController', function () {
title: 'Host is passed, db is empty',
content: {
hosts: [
- {hostName: 'host1'}
+ {name: 'host1'}
],
dbHosts: {}
},
@@ -61,7 +61,7 @@ describe('App.AddHostController', function () {
title: 'Passed host different from hosts in db',
content: {
hosts: [
- {hostName: 'host1'}
+ {name: 'host1'}
],
dbHosts: {
'host2': {}
@@ -75,7 +75,7 @@ describe('App.AddHostController', function () {
title: 'Passed host match host in db',
content: {
hosts: [
- {hostName: 'host1'}
+ {name: 'host1'}
],
dbHosts: {
'host1': {}
[3/3] ambari git commit: AMBARI-8588. Ambari should not support NN HA
in HDP 1.3.x (alexantonenko)
Posted by al...@apache.org.
AMBARI-8588. Ambari should not support NN HA in HDP 1.3.x (alexantonenko)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/e222d2f5
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/e222d2f5
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/e222d2f5
Branch: refs/heads/trunk
Commit: e222d2f5de410b6b63c4136f10681a9fb001fbee
Parents: 5f2c1a2
Author: Alex Antonenko <hi...@gmail.com>
Authored: Mon Dec 8 19:56:09 2014 +0200
Committer: Alex Antonenko <hi...@gmail.com>
Committed: Mon Dec 8 20:04:11 2014 +0200
----------------------------------------------------------------------
ambari-web/app/views/main/service/item.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/e222d2f5/ambari-web/app/views/main/service/item.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/views/main/service/item.js b/ambari-web/app/views/main/service/item.js
index 7b3c7a5..5cb8bd8 100644
--- a/ambari-web/app/views/main/service/item.js
+++ b/ambari-web/app/views/main/service/item.js
@@ -89,7 +89,7 @@ App.MainServiceItemView = Em.View.extend({
action: App.get('isHaEnabled') ? 'disableHighAvailability' : 'enableHighAvailability',
label: App.get('isHaEnabled') ? Em.I18n.t('admin.highAvailability.button.disable') : Em.I18n.t('admin.highAvailability.button.enable'),
cssClass: App.get('isHaEnabled') ? 'icon-arrow-down' : 'icon-arrow-up',
- isHidden: (App.get('isHaEnabled') && !App.get('supports.autoRollbackHA'))
+ isHidden: (App.get('isHaEnabled') || (/^1.3/.test(App.get('currentStackVersionNumber'))))
},
TOGGLE_RM_HA: {
action: 'enableRMHighAvailability',