ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dbhowm...@apache.org
Subject ambari git commit: AMBARI-20383. Not able to view the error log details on UI. (Padma Priya via dipayanb)
Date Mon, 13 Mar 2017 12:59:03 GMT
Repository: ambari
Updated Branches:
  refs/heads/branch-2.5 c0e2209c0 -> be10018f6


AMBARI-20383. Not able to view the error log details on UI. (Padma Priya via dipayanb)


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

Branch: refs/heads/branch-2.5
Commit: be10018f64deeaa479d7b0b6797d38e38c48ca4c
Parents: c0e2209
Author: Dipayan Bhowmick <dipayan.bhowmick@gmail.com>
Authored: Mon Mar 13 18:27:56 2017 +0530
Committer: Dipayan Bhowmick <dipayan.bhowmick@gmail.com>
Committed: Mon Mar 13 18:28:29 2017 +0530

----------------------------------------------------------------------
 .../src/main/resources/ui/app/validators/workflow-dag.js | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/be10018f/contrib/views/wfmanager/src/main/resources/ui/app/validators/workflow-dag.js
----------------------------------------------------------------------
diff --git a/contrib/views/wfmanager/src/main/resources/ui/app/validators/workflow-dag.js
b/contrib/views/wfmanager/src/main/resources/ui/app/validators/workflow-dag.js
index 18da25b..2a419eb 100644
--- a/contrib/views/wfmanager/src/main/resources/ui/app/validators/workflow-dag.js
+++ b/contrib/views/wfmanager/src/main/resources/ui/app/validators/workflow-dag.js
@@ -14,20 +14,19 @@
 *    See the License for the specific language governing permissions and
 *    limitations under the License.
 */
-import Ember from 'ember';
 import BaseValidator from 'ember-cp-validations/validators/base';
 
-const DuplicateDataNodeName = BaseValidator.extend({
+const WorkflowDag = BaseValidator.extend({
   validate(value, options, model, attribute) {
-    if (model.get('dataNodes')) {
+    if (model.get('dataNodes') && model.get('dataNodes').length) {
       if(!model.get('flowRenderer').isWorkflowValid()){
-        return "Invalid workflow structure. There is no flow to end node."
+        return "Invalid workflow structure. There is no flow to end node.";
       }
     }
   }
 });
 
-DuplicateDataNodeName.reopenClass({
+WorkflowDag.reopenClass({
   /**
    * Define attribute specific dependent keys for your validator
    *
@@ -40,4 +39,4 @@ DuplicateDataNodeName.reopenClass({
   }
 });
 
-export default DuplicateDataNodeName;
+export default WorkflowDag;


Mime
View raw message