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/01/05 13:38:43 UTC

[10/15] ambari git commit: AMBARI-19367.Not able to save FS action node after populating job xml value. (Venkata Sairam via gauravn7)

AMBARI-19367.Not able to save FS action node after populating job xml value. (Venkata Sairam via gauravn7)


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

Branch: refs/heads/branch-dev-patch-upgrade
Commit: 5e2b471516ae60ff2a14d3ed2f4cad3a3408aec2
Parents: 2a2252c
Author: Gaurav Nagar <gr...@gmail.com>
Authored: Thu Jan 5 15:01:24 2017 +0530
Committer: Gaurav Nagar <gr...@gmail.com>
Committed: Thu Jan 5 15:03:07 2017 +0530

----------------------------------------------------------------------
 contrib/views/wfmanager/.gitignore              | 20 ++++++++++++++++++++
 .../resources/ui/app/components/fs-action.js    |  3 +++
 2 files changed, 23 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/5e2b4715/contrib/views/wfmanager/.gitignore
----------------------------------------------------------------------
diff --git a/contrib/views/wfmanager/.gitignore b/contrib/views/wfmanager/.gitignore
new file mode 100644
index 0000000..ae354e7
--- /dev/null
+++ b/contrib/views/wfmanager/.gitignore
@@ -0,0 +1,20 @@
+# Numerous always-ignore extensions
+*.swp
+*.bak
+*.log
+*.patch
+
+# OS or Editor folders
+.DS_Store
+
+# Installation and build tools
+src/main/resources/ui/node/
+src/main/resources/ui/node_modules/
+src/main/resources/ui/bower_components/
+_generators/
+
+# Output directory
+src/main/resources/ui/dist/
+
+# Brunch folder for temporary files.
+src/main/resources/ui/tmp/

http://git-wip-us.apache.org/repos/asf/ambari/blob/5e2b4715/contrib/views/wfmanager/src/main/resources/ui/app/components/fs-action.js
----------------------------------------------------------------------
diff --git a/contrib/views/wfmanager/src/main/resources/ui/app/components/fs-action.js b/contrib/views/wfmanager/src/main/resources/ui/app/components/fs-action.js
index 6233b62..40ac43d 100644
--- a/contrib/views/wfmanager/src/main/resources/ui/app/components/fs-action.js
+++ b/contrib/views/wfmanager/src/main/resources/ui/app/components/fs-action.js
@@ -38,6 +38,9 @@ export default Ember.Component.extend(Validations, {
       this.set("actionModel.configuration", {});
       this.set("actionModel.configuration.property", Ember.A([]));
     }
+    if(this.get('actionModel.jobXml') === undefined){
+      this.set("actionModel.jobXml", Ember.A([]));
+    }
     var field = 'validations.attrs.actionModel.fsOps.isInvalid';
     this.set(field, false);
     this.sendAction('register', 'fsAction', this);