ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ababiic...@apache.org
Subject ambari git commit: AMBARI-8719 Repo distribution progress: task "Install Packages Actionexecute" should just say "Install Packages". (ababiichuk)
Date Mon, 15 Dec 2014 17:54:38 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk 5bcb0ff4e -> 2ccfa617a


AMBARI-8719 Repo distribution progress: task "Install Packages Actionexecute" should just
say "Install Packages". (ababiichuk)


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

Branch: refs/heads/trunk
Commit: 2ccfa617a92a77582835d0cedffdb2853f25b41f
Parents: 5bcb0ff
Author: ababiichuk <ababiichuk@hortonworks.com>
Authored: Mon Dec 15 19:29:52 2014 +0200
Committer: ababiichuk <ababiichuk@hortonworks.com>
Committed: Mon Dec 15 19:54:17 2014 +0200

----------------------------------------------------------------------
 ambari-web/app/messages.js           | 1 +
 ambari-web/app/utils/helper.js       | 3 +++
 ambari-web/test/utils/helper_test.js | 4 ++++
 3 files changed, 8 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/2ccfa617/ambari-web/app/messages.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/messages.js b/ambari-web/app/messages.js
index 83eacf6..478b180 100644
--- a/ambari-web/app/messages.js
+++ b/ambari-web/app/messages.js
@@ -221,6 +221,7 @@ Em.I18n.translations = {
   'common.hostLog.popup.outputLog.value': 'output-{0}.txt',
   'common.hostLog.popup.errorLog.value': 'errors-{0}.txt',
   'common.maintenance.task': ' Toggle Maintenance Mode',
+  'common.installRepo.task': ' Install Packages',
   'common.used': 'used',
   'common.free': 'free',
   'common.type.string': 'string',

http://git-wip-us.apache.org/repos/asf/ambari/blob/2ccfa617/ambari-web/app/utils/helper.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/utils/helper.js b/ambari-web/app/utils/helper.js
index 7d182bf..68a1047 100644
--- a/ambari-web/app/utils/helper.js
+++ b/ambari-web/app/utils/helper.js
@@ -485,6 +485,9 @@ App.format = {
     if (result === ' Nagios Update Ignore Actionexecute') {
        result = Em.I18n.t('common.maintenance.task');
     }
+    if (result === ' Install Packages Actionexecute') {
+      result = Em.I18n.t('common.installRepo.task');
+    }
     if (result === ' Rebalancehdfs NameNode') {
        result = Em.I18n.t('services.service.actions.run.rebalanceHdfsNodes.title');
     }

http://git-wip-us.apache.org/repos/asf/ambari/blob/2ccfa617/ambari-web/test/utils/helper_test.js
----------------------------------------------------------------------
diff --git a/ambari-web/test/utils/helper_test.js b/ambari-web/test/utils/helper_test.js
index 9274ae0..8e7e501 100644
--- a/ambari-web/test/utils/helper_test.js
+++ b/ambari-web/test/utils/helper_test.js
@@ -179,6 +179,7 @@ describe('utils/helper', function() {
         var ignored = "DECOMMISSION, NAMENODE";
         var removeString = "SERVICE/HDFS STOP";
         var nagiosState = "nagios_update_ignore ACTIONEXECUTE";
+        var installPepo = ' Install Packages Actionexecute';
         it('should convert command to readable info', function() {
           expect(App.format.commandDetail(command)).to.eql(' Ganglia Monitor Stop');
         });
@@ -191,6 +192,9 @@ describe('utils/helper', function() {
         it('should return maintenance message', function() {
           expect(App.format.commandDetail(nagiosState)).to.eql(' Toggle Maintenance Mode');
         });
+        it('should return install repo message', function() {
+          expect(App.format.commandDetail(installPepo)).to.eql(Em.I18n.t('common.installRepo.task'));
+        });
       });
       describe('#taskStatus()', function(){
         var testable = [


Mime
View raw message