ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aonis...@apache.org
Subject [42/50] [abbrv] ambari git commit: AMBARI-20729.Need way to explicitly ask for workflow name(Supreeth Sharma via Venkata Sairam)
Date Mon, 24 Apr 2017 12:01:57 GMT
AMBARI-20729.Need way to explicitly ask for workflow name(Supreeth Sharma via Venkata Sairam)


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

Branch: refs/heads/branch-3.0-perf
Commit: c53b68ea200ca85b3aa3148f84e616981c6c72d2
Parents: abe5e55
Author: Venkata Sairam <venkatasairam.lanka@gmail.com>
Authored: Fri Apr 21 17:00:38 2017 +0530
Committer: Andrew Onishuk <aonishuk@hortonworks.com>
Committed: Mon Apr 24 14:59:56 2017 +0300

----------------------------------------------------------------------
 .../src/main/resources/ui/app/components/bundle-config.js         | 3 ++-
 .../src/main/resources/ui/app/components/coord-config.js          | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/c53b68ea/contrib/views/wfmanager/src/main/resources/ui/app/components/bundle-config.js
----------------------------------------------------------------------
diff --git a/contrib/views/wfmanager/src/main/resources/ui/app/components/bundle-config.js
b/contrib/views/wfmanager/src/main/resources/ui/app/components/bundle-config.js
index 99f4fa7..41012b2 100644
--- a/contrib/views/wfmanager/src/main/resources/ui/app/components/bundle-config.js
+++ b/contrib/views/wfmanager/src/main/resources/ui/app/components/bundle-config.js
@@ -47,6 +47,7 @@ export default Ember.Component.extend(Ember.Evented, Validations, {
   fileBrowser : Ember.inject.service('file-browser'),
   workspaceManager : Ember.inject.service('workspace-manager'),
   jobConfigProperties: Ember.A([]),
+  isDefaultNameForBundleEnabled : false,
   initialize : function(){
     var self = this;
     this.set('errors', Ember.A([]));
@@ -95,7 +96,7 @@ export default Ember.Component.extend(Ember.Evented, Validations, {
     }else{
       this.set('bundle', this.createBundle());
     }
-    if(Ember.isBlank(this.get('bundle.name'))){
+    if(Ember.isBlank(this.get('bundle.name')) && this.get('isDefaultNameForBundleEnabled')){
       this.set('bundle.name', Ember.copy(this.get('tabInfo.name')));
     }
     this.schedulePersistWorkInProgress();

http://git-wip-us.apache.org/repos/asf/ambari/blob/c53b68ea/contrib/views/wfmanager/src/main/resources/ui/app/components/coord-config.js
----------------------------------------------------------------------
diff --git a/contrib/views/wfmanager/src/main/resources/ui/app/components/coord-config.js
b/contrib/views/wfmanager/src/main/resources/ui/app/components/coord-config.js
index fba4db5..1aeca5b 100644
--- a/contrib/views/wfmanager/src/main/resources/ui/app/components/coord-config.js
+++ b/contrib/views/wfmanager/src/main/resources/ui/app/components/coord-config.js
@@ -51,6 +51,7 @@ export default Ember.Component.extend(Validations, Ember.Evented, {
   workspaceManager : Ember.inject.service('workspace-manager'),
   showErrorMessage: Ember.computed.alias('saveAttempted'),
   jobConfigProperties: Ember.A([]),
+  isDefaultNameForCoordinatorEnabled : false,
   datasetsForInputs : Ember.computed('coordinator.datasets.[]','coordinator.dataOutputs.[]',function(){
     var datasetsForInputs = Ember.copy(this.get('coordinator.datasets'));
     this.get('coordinator.dataOutputs').forEach((dataOutput)=>{
@@ -145,7 +146,7 @@ export default Ember.Component.extend(Validations, Ember.Evented, {
       {'name':'throttle', 'displayName':'Throttle', 'value':''}
     ]);
     this.set('timezoneList', Ember.copy(Constants.timezoneList));
-    if(Ember.isBlank(this.get('coordinator.name'))){
+    if(Ember.isBlank(this.get('coordinator.name')) && this.get('isDefaultNameForCoordinatorEnabled')){
       this.set('coordinator.name', Ember.copy(this.get('tabInfo.name')));
     }
     this.schedulePersistWorkInProgress();


Mime
View raw message