Browse Source

AMBARI-12080: Oozie ELService properties required for FALCON are removed when saving oozie configs (jluniya)

Jayush Luniya 10 năm trước cách đây
mục cha
commit
3cd06662c0
1 tập tin đã thay đổi với 8 bổ sung1 xóa
  1. 8 1
      ambari-web/app/controllers/main/service/info/configs.js

+ 8 - 1
ambari-web/app/controllers/main/service/info/configs.js

@@ -542,7 +542,14 @@ App.MainServiceInfoConfigsController = Em.Controller.extend(App.ConfigsLoader, A
   onLoadOverrides: function (allConfigs) {
     this.get('servicesToLoad').forEach(function(serviceName) {
       var configGroups = serviceName == this.get('content.serviceName') ? this.get('configGroups') : this.get('dependentConfigGroups').filterProperty('serviceName', serviceName);
-      var configsByService = this.get('allConfigs').filterProperty('serviceName', serviceName);
+      var serviceNames = [ serviceName ]
+      if(serviceName === 'OOZIE') {
+        // For Oozie, also add ELService properties which are marked as FALCON properties.
+        serviceNames.push('FALCON')
+      }
+      var configsByService = this.get('allConfigs').filter(function (c) {
+        return serviceNames.contains(c.get('serviceName'));
+      });
       databaseUtils.bootstrapDatabaseProperties(configsByService, serviceName);
       var serviceConfig = App.config.createServiceConfig(serviceName, configGroups, configsByService, configsByService.length);
       if (serviceConfig.get('serviceName') === 'HDFS') {