You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by nc...@apache.org on 2017/04/12 13:49:00 UTC
[15/35] ambari git commit: AMBARI-20718.User should not be allowed to
validate/Submit the workflow in case of duplicate action nodes(Venkata Sairam
via padmapriyanitt)
AMBARI-20718.User should not be allowed to validate/Submit the workflow in case of duplicate action nodes(Venkata Sairam via padmapriyanitt)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/c0cef762
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/c0cef762
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/c0cef762
Branch: refs/heads/branch-feature-AMBARI-12556
Commit: c0cef762666dab2619d4b4b511ed828e29325201
Parents: 953cc9c
Author: padmapriyanitt <pa...@gmail.com>
Authored: Tue Apr 11 15:40:47 2017 +0530
Committer: padmapriyanitt <pa...@gmail.com>
Committed: Tue Apr 11 15:40:47 2017 +0530
----------------------------------------------------------------------
.../src/main/resources/ui/app/components/flow-designer.js | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/c0cef762/contrib/views/wfmanager/src/main/resources/ui/app/components/flow-designer.js
----------------------------------------------------------------------
diff --git a/contrib/views/wfmanager/src/main/resources/ui/app/components/flow-designer.js b/contrib/views/wfmanager/src/main/resources/ui/app/components/flow-designer.js
index e3f3718..17f21ee 100644
--- a/contrib/views/wfmanager/src/main/resources/ui/app/components/flow-designer.js
+++ b/contrib/views/wfmanager/src/main/resources/ui/app/components/flow-designer.js
@@ -723,10 +723,9 @@ export default Ember.Component.extend(FindNodeMixin, Validations, {
},
openJobConfig () {
this.get('workflowContext').clearErrors();
- var workflowGenerator=WorkflowGenerator.create({workflow:this.get("workflow"),
- workflowContext:this.get('workflowContext')});
- var workflowXml=workflowGenerator.process();
- if(this.get('workflowContext').hasErrors()){
+ var workflowGenerator = WorkflowGenerator.create({workflow:this.get("workflow"), workflowContext:this.get('workflowContext')});
+ var workflowXml = workflowGenerator.process();
+ if(this.get('workflowContext').hasErrors() || (this.get("validationErrors") && this.get("validationErrors").length)){
this.set('errors',this.get('workflowContext').getErrors());
}else{
var dynamicProperties = this.get('propertyExtractor').getDynamicProperties(workflowXml);