ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vsai...@apache.org
Subject ambari git commit: AMBARI-20729.Need way to explicitly ask for workflow name(Supreeth Sharma via Venkata Sairam)
Date Fri, 21 Apr 2017 11:32:47 GMT
Repository: ambari
Updated Branches:
  refs/heads/branch-2.5 7e13bb72a -> 27b322117


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/27b32211
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/27b32211
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/27b32211

Branch: refs/heads/branch-2.5
Commit: 27b322117d304401da0d5ad9a25e1ca15c2b7104
Parents: 7e13bb7
Author: Venkata Sairam <venkatasairam.lanka@gmail.com>
Authored: Fri Apr 21 17:00:38 2017 +0530
Committer: Venkata Sairam <venkatasairam.lanka@gmail.com>
Committed: Fri Apr 21 17:02:20 2017 +0530

----------------------------------------------------------------------
 .../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/27b32211/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/27b32211/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