Return-Path: X-Original-To: apmail-ambari-dev-archive@www.apache.org Delivered-To: apmail-ambari-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3E17C11436 for ; Fri, 22 Aug 2014 13:16:57 +0000 (UTC) Received: (qmail 91802 invoked by uid 500); 22 Aug 2014 13:16:57 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 91776 invoked by uid 500); 22 Aug 2014 13:16:57 -0000 Mailing-List: contact dev-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ambari.apache.org Delivered-To: mailing list dev@ambari.apache.org Received: (qmail 91759 invoked by uid 99); 22 Aug 2014 13:16:56 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Aug 2014 13:16:56 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id 580081D98E5; Fri, 22 Aug 2014 13:16:57 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============8946837200081478401==" MIME-Version: 1.0 Subject: Re: Review Request 24978: Stacks service API: configTypes filed should return contained configuration files for the service From: "Andrew Onischuk" To: "Dmytro Sen" Cc: "Andrew Onischuk" , "Ambari" Date: Fri, 22 Aug 2014 13:16:57 -0000 Message-ID: <20140822131657.15059.45821@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org Auto-Submitted: auto-generated Sender: "Andrew Onischuk" X-ReviewGroup: Ambari X-ReviewRequest-URL: https://reviews.apache.org/r/24978/ X-Sender: "Andrew Onischuk" References: <20140822131631.5429.10836@reviews.apache.org> In-Reply-To: <20140822131631.5429.10836@reviews.apache.org> Reply-To: "Andrew Onischuk" X-ReviewRequest-Repository: ambari --===============8946837200081478401== MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/24978/ ----------------------------------------------------------- (Updated Aug. 22, 2014, 1:16 p.m.) Review request for Ambari and Dmytro Sen. Bugs: AMBARI-6959 https://issues.apache.org/jira/browse/AMBARI-6959 Repository: ambari Description ------- Right now service metainfo definition provides configuration-dependencies tag that is exposed in the API as configTypes field. This behaviour is wrong, what should be exposed is name of all the configuration types that the service carries in it's configuration folder. UI will use this to **display configType section and configurations on the service config page**. As of now UI Uses the field to provide functionality by hard-coding the references to the services in the web-code (see below) which can lead to potential bugs when service metainfo.xml is changed with to address just one functionality. 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'); } Diffs ----- ambari-server/src/main/java/org/apache/ambari/server/api/util/StackExtensionHelper.java c62e48d ambari-server/src/main/resources/stacks/HDP/2.0.6/services/YARN/configuration/core-site.xml 60f01ad ambari-server/src/main/resources/stacks/HDP/2.1/services/YARN/configuration/core-site.xml 60f01ad ambari-server/src/test/java/org/apache/ambari/server/api/util/StackExtensionHelperTest.java 548ab88 Diff: https://reviews.apache.org/r/24978/diff/ Testing ------- mvn clean test Thanks, Andrew Onischuk --===============8946837200081478401==--