Browse Source

AMBARI-1986. HDFS General section has disappeared from Customize Services step of the Install Wizard. (yusaku)

git-svn-id: https://svn.apache.org/repos/asf/incubator/ambari/trunk@1469635 13f79535-47bb-0310-9956-ffa450edef68
Yusaku Sako 12 năm trước cách đây
mục cha
commit
a0248b78ac
2 tập tin đã thay đổi với 6 bổ sung7 xóa
  1. 3 0
      CHANGES.txt
  2. 3 7
      ambari-web/app/utils/config.js

+ 3 - 0
CHANGES.txt

@@ -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 

+ 3 - 7
ambari-web/app/utils/config.js

@@ -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;
         }
       }