Return-Path: X-Original-To: apmail-incubator-ambari-commits-archive@minotaur.apache.org Delivered-To: apmail-incubator-ambari-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8DDDF1015A for ; Thu, 18 Apr 2013 23:39:07 +0000 (UTC) Received: (qmail 51085 invoked by uid 500); 18 Apr 2013 23:39:07 -0000 Delivered-To: apmail-incubator-ambari-commits-archive@incubator.apache.org Received: (qmail 51062 invoked by uid 500); 18 Apr 2013 23:39:07 -0000 Mailing-List: contact ambari-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ambari-dev@incubator.apache.org Delivered-To: mailing list ambari-commits@incubator.apache.org Received: (qmail 51054 invoked by uid 99); 18 Apr 2013 23:39:07 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Apr 2013 23:39:07 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Apr 2013 23:39:05 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 40EDE23888EA; Thu, 18 Apr 2013 23:38:44 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1469635 - in /incubator/ambari/trunk: CHANGES.txt ambari-web/app/utils/config.js Date: Thu, 18 Apr 2013 23:38:44 -0000 To: ambari-commits@incubator.apache.org From: yusaku@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20130418233844.40EDE23888EA@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: yusaku Date: Thu Apr 18 23:38:43 2013 New Revision: 1469635 URL: http://svn.apache.org/r1469635 Log: AMBARI-1986. HDFS General section has disappeared from Customize Services step of the Install Wizard. (yusaku) Modified: incubator/ambari/trunk/CHANGES.txt incubator/ambari/trunk/ambari-web/app/utils/config.js Modified: incubator/ambari/trunk/CHANGES.txt URL: http://svn.apache.org/viewvc/incubator/ambari/trunk/CHANGES.txt?rev=1469635&r1=1469634&r2=1469635&view=diff ============================================================================== --- incubator/ambari/trunk/CHANGES.txt (original) +++ incubator/ambari/trunk/CHANGES.txt Thu Apr 18 23:38:43 2013 @@ -765,6 +765,9 @@ Trunk (unreleased changes): BUG FIXES + AMBARI-1986. HDFS General section has disappeared from Customize Services + step of the Install Wizard. (yusaku) + AMBARI-1985. Incorrect behavior of "Undo" button for password fields. (yusaku) AMBARI-1702. Ambari/GSInstallers need to set the value of Modified: incubator/ambari/trunk/ambari-web/app/utils/config.js URL: http://svn.apache.org/viewvc/incubator/ambari/trunk/ambari-web/app/utils/config.js?rev=1469635&r1=1469634&r2=1469635&view=diff ============================================================================== --- incubator/ambari/trunk/ambari-web/app/utils/config.js (original) +++ incubator/ambari/trunk/ambari-web/app/utils/config.js Thu Apr 18 23:38:43 2013 @@ -199,15 +199,11 @@ App.config = Em.Object.create({ var stored = storedConfigs.findProperty('name', name); var preDefined = preDefinedConfigs.findProperty('name', name); var configData = {}; - var configCategory = 'Advanced'; var isAdvanced = advancedConfigs.someProperty('name', name); if (preDefined && stored) { configData = preDefined; configData.value = stored.value; configData.overrides = stored.overrides; - if (isAdvanced) { - configData.category = (configData.category === undefined) ? configCategory : configData.category; - } } else if (!preDefined && stored) { configData = { id: stored.id, @@ -218,10 +214,11 @@ App.config = Em.Object.create({ defaultValue: stored.defaultValue, displayType: "advanced", filename: stored.filename, - category: configCategory, + category: 'Advanced', isUserProperty: stored.isUserProperty === true, isOverridable: true, - overrides: stored.overrides + overrides: stored.overrides, + isRequired: !isAdvanced } if (!isAdvanced || this.get('customFileNames').contains(configData.filename)) { var categoryMetaData = this.identifyCategory(configData); @@ -233,7 +230,6 @@ App.config = Em.Object.create({ } else if (preDefined && !stored) { configData = preDefined; if (isAdvanced) { - configData.category = (configData.category === undefined) ? configCategory : configData.category; configData.filename = advancedConfigs.findProperty('name', configData.name).filename; } }