Repository: ambari
Updated Branches:
  refs/heads/branch-2.5 6061a677e -> e382df243


Error Message are Not shown Properly in Hue-Ambari Migration View (Ishan Bhatt 
via gauravn7)


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

Branch: refs/heads/branch-2.5
Commit: e382df24324b4694c69427468d3114d3641840ef
Parents: 6061a67
Author: Gaurav Nagar <[email protected]>
Authored: Thu Jan 19 18:33:26 2017 +0530
Committer: Gaurav Nagar <[email protected]>
Committed: Thu Jan 19 18:33:59 2017 +0530

----------------------------------------------------------------------
 .../app/routes/check-configuration.js                   | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/e382df24/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/routes/check-configuration.js
----------------------------------------------------------------------
diff --git 
a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/routes/check-configuration.js
 
b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/routes/check-configuration.js
index 8e0f28d..b6bd298 100644
--- 
a/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/routes/check-configuration.js
+++ 
b/contrib/views/hueambarimigration/src/main/resources/ui/hueambarimigration-view/app/routes/check-configuration.js
@@ -64,7 +64,7 @@ export default Ember.Route.extend({
         control.set('progresBar', progresBar);
         control.set('huehttpurlTestresult', "Hue Http URl test Failed");
         if (error.status !== 200) {
-          checkFailedMessage = "Service Hue Database check failed";
+          checkFailedMessage = "Hue Http URL test Failed";
           var errors;
           errors = checkFailedMessage;
           errors += (error.message) ? (': <i>' + error.message + '</i><br>') : 
'<br>';
@@ -97,7 +97,7 @@ export default Ember.Route.extend({
         var checkFailedMessage;
         control.set('progresBar', progresBar);
         if (error.status !== 200) {
-          checkFailedMessage = "Service Hue Database check failed";
+          checkFailedMessage = "Hue Web HDFS URL test Failed";
           var errors;
           errors = checkFailedMessage;
           errors += (error.message) ? (': <i>' + error.message + '</i><br>') : 
'<br>';
@@ -130,7 +130,7 @@ export default Ember.Route.extend({
         var checkFailedMessage;
         control.set('progresBar', progresBar);
         if (error.status !== 200) {
-          checkFailedMessage = "Service Hue Database check failed";
+          checkFailedMessage = "Ambari Web HDFS URL test Failed";
           var errors;
           errors = checkFailedMessage;
           errors += (error.message) ? (': <i>' + error.message + '</i><br>') : 
'<br>';
@@ -159,8 +159,6 @@ export default Ember.Route.extend({
         }
       },
       function(error) {
-        control.set('huedatabasesTest', "Success");
-        control.set('huedatabasesTest', null);
         progresBar = progresBar + 20;
         var checkFailedMessage;
         control.set('progresBar', progresBar);
@@ -198,7 +196,7 @@ export default Ember.Route.extend({
         var checkFailedMessage;
         control.set('progresBar', progresBar);
         if (error.status !== 200) {
-          checkFailedMessage = "Service Hue Database check failed";
+          checkFailedMessage = "Ambari Database Connection Failed";
           var errors;
           errors = checkFailedMessage;
           errors += (error.message) ? (': <i>' + error.message + '</i><br>') : 
'<br>';
@@ -212,4 +210,4 @@ export default Ember.Route.extend({
         }
       });
   }
-});
\ No newline at end of file
+});

Reply via email to