Pārlūkot izejas kodu

AMBARI-7049. Remove the explicit logic of rendering specific configType category just for specific services. (jaimin)

Jaimin Jetly 10 gadi atpakaļ
vecāks
revīzija
debf29c233
1 mainītis faili ar 1 papildinājumiem un 14 dzēšanām
  1. 1 14
      ambari-web/app/models/stack_service.js

+ 1 - 14
ambari-web/app/models/stack_service.js

@@ -332,25 +332,12 @@ App.StackService.configCategories = function () {
   serviceConfigCategories.pushObject(App.ServiceConfigCategory.create({ name: 'Advanced', displayName: 'Advanced'}));
 
   var configTypes = Object.keys(this.get('configTypes'));
-  if (this.get('serviceName') !== 'HDFS') {
-    configTypes = configTypes.without('core-site');
-  }
+
   //Falcon has dependency on oozie-site but oozie-site advanced/custom section should not be shown on Falcon page
   if (this.get('serviceName') !== 'OOZIE') {
     configTypes = configTypes.without('oozie-site');
   }
 
-  //Hive has dependency on tez-site but tez-site advanced/custom section should not be shown on Hive page
-  if (this.get('serviceName') !== 'TEZ') {
-    configTypes = configTypes.without('tez-site');
-  }
-
-  //oozie has dependency on yarn-site but yarn-site advanced/custom section should not be shown on Oozie page
-  if (this.get('serviceName') !== 'YARN') {
-    configTypes = configTypes.without('yarn-site');
-  }
-
-
   // Add Advanced section for every configType to all the services
   configTypes.forEach(function (type) {
     var displayName = 'Advanced ' + type;