ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jaimin Jetly" <jai...@hortonworks.com>
Subject Re: Review Request 40311: AMBARI-11964: Allow services to hide "custom" configurations
Date Thu, 19 Nov 2015 20:01:13 GMT

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/40311/#review107231
-----------------------------------------------------------

Ship it!


Ship It!

- Jaimin Jetly


On Nov. 18, 2015, 5:22 p.m., Di Li wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/40311/
> -----------------------------------------------------------
> 
> (Updated Nov. 18, 2015, 5:22 p.m.)
> 
> 
> Review request for Ambari, Alexandr Antonenko and Jaimin Jetly.
> 
> 
> Bugs: AMBARI-11964
>     https://issues.apache.org/jira/browse/AMBARI-11964
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> Ambari backend already has such attribute defined for each configType (JIRA AMBARI-7404).
It's called "supports_adding_forbidden". The same as "supports_final", you need to set it
at the configType level. For example, if you want Ambari web UI to not show Custom hdfs-site
for HDFS, you should have the "configuration" section set like this <configuration supports_final="true"
supports_adding_forbidden="true">, in the hdfs-site.xml.
> 
> The issue here is that even though the Ambari server backend sends this information to
the UI as a JSON string, UI currently does not process it, thus no show/hide the Custom...
sections behavior observed even when the attribute is set to true.
> 
> The patch here proposed a fix to have the UI process the value and show/hide the Custom...
sections accordingly.
> 
> 
> Diffs
> -----
> 
>   ambari-server/src/main/resources/common-services/FLUME/1.4.0.2.0/configuration/flume-conf.xml
f91be65 
>   ambari-server/src/main/resources/common-services/PIG/0.12.0.2.0/configuration/pig-properties.xml
fbb6949 
>   ambari-server/src/main/resources/stacks/BIGTOP/0.8/services/FLUME/configuration/flume-conf.xml
36de434 
>   ambari-server/src/main/resources/stacks/BIGTOP/0.8/services/PIG/configuration/pig-properties.xml
909bc98 
>   ambari-server/src/main/resources/stacks/HDP/2.0.6.GlusterFS/services/PIG/configuration/pig-properties.xml
9fc8188 
>   ambari-server/src/main/resources/stacks/HDP/2.1.GlusterFS/services/PIG/configuration/pig-properties.xml
9fc8188 
>   ambari-server/src/main/resources/stacks/HDP/2.1/services/PIG/configuration/pig-properties.xml
1a3a0d6 
>   ambari-server/src/main/resources/stacks/HDP/2.3/services/PIG/configuration/pig-properties.xml
ebba6be 
>   ambari-server/src/main/resources/stacks/HDPWIN/2.1/services/FLUME/configuration/flume-conf.xml
f91be65 
>   ambari-server/src/test/resources/stacks/HDP/2.0.6.1/services/FLUME/configuration/flume-conf.xml
36de434 
>   ambari-server/src/test/resources/stacks/HDP/2.0.6/services/FLUME/configuration/flume-conf.xml
36de434 
>   ambari-server/src/test/resources/stacks/HDP/2.1.1/services/PIG/configuration/pig-properties.xml
9f86180 
>   ambari-web/app/models/stack_service.js 1926b9c 
>   ambari-web/app/utils/config.js b113a21 
>   ambari-web/app/views/common/configs/service_config_view.js 0ef2112 
>   ambari-web/app/views/common/configs/service_configs_by_category_view.js ffbea76 
>   ambari-web/test/utils/config_test.js c90b758 
>   ambari-web/test/views/common/configs/service_config_view_test.js 1f0cd60 
> 
> Diff: https://reviews.apache.org/r/40311/diff/
> 
> 
> Testing
> -------
> 
> 1. New unit tests.
> 
> 2. Patched a cluster installed with trunk Ambari build, update various ...site.xml to
have the supports_adding_forbidden attribute set to true, restart ambari server, reload UI,
verify the corresponding Custom... sections are gone.
> 
> 
> Thanks,
> 
> Di Li
> 
>


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message