[ 
https://issues.apache.org/jira/browse/AMBARI-19249?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15764611#comment-15764611
 ] 

Aleksandr Kovalenko commented on AMBARI-19249:
----------------------------------------------

[~sjampa],
configs with radio buttons on advanced tab are completely hardcoded and are not 
supposed to be easily added. But you can add such properties for enhanced 
configs tab, as described in 
https://cwiki.apache.org/confluence/display/AMBARI/Enhanced+Configs. For future 
release we are going to get rid off of such hardcoded properties on advanced 
tab (Ranger has db configuration properties in enhanced tab, for Hive and Oozie 
we also moved these properties to enhanced configs - 
https://issues.apache.org/jira/browse/AMBARI-18998).
On advanced tab such properties has it's unique logic, that is hardcodeded in 
much places in code of ambari project, so we can't give instrunctions how to 
add such properties if we don't understand what logic you want to have.

> Adding custom config property say radio button fields etc needs hardcoding in 
> various places
> --------------------------------------------------------------------------------------------
>
>                 Key: AMBARI-19249
>                 URL: https://issues.apache.org/jira/browse/AMBARI-19249
>             Project: Ambari
>          Issue Type: Task
>          Components: ambari-web
>    Affects Versions: 2.2.2
>            Reporter: sjampa
>             Fix For: 2.5.0
>
>
> Steps for creating a configuration property with radio button options. 
> Something similar to what we have it for “hive database” selection under hive 
> config tab. This needs hard-coding in multiple places like say i want to add 
> a field like below with radio options:
> Example:
> custom_database: 
> o   Mysql
> o   Postgres
> o   Mssql
> The below link will give info on customizing only the first Tab:
> https://cwiki.apache.org/confluence/display/AMBARI/Enhanced+Configs
> For Advanced Tab:
> So far I found one file with references to the fields under Advanced Tab:
> “/opt/apache-ambari-2.2.2-src/ambari-web/public/javascripts/app.js”
> Its better to have some documentation steps as an initial draft for the users 
> to add these fields, also about the "test connection" button. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to