AMBARI-7049. Remove the explicit logic of rendering specific configType category just for specific services. (jaimin)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/debf29c2 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/debf29c2 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/debf29c2 Branch: refs/heads/branch-alerts-dev Commit: debf29c23365c0826902f699a3f3cc9e23dc76a6 Parents: f77e9e8 Author: Jaimin Jetly <[email protected]> Authored: Wed Aug 27 15:41:52 2014 -0700 Committer: Jaimin Jetly <[email protected]> Committed: Wed Aug 27 15:41:52 2014 -0700 ---------------------------------------------------------------------- ambari-web/app/models/stack_service.js | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/debf29c2/ambari-web/app/models/stack_service.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/models/stack_service.js b/ambari-web/app/models/stack_service.js index a711936..89b2b81 100644 --- a/ambari-web/app/models/stack_service.js +++ b/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;
