You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Srimanth Gunturi (JIRA)" <ji...@apache.org> on 2015/04/23 22:40:38 UTC

[jira] [Resolved] (AMBARI-10702) Theme widgets should be merged from inherited theme

     [ https://issues.apache.org/jira/browse/AMBARI-10702?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Srimanth Gunturi resolved AMBARI-10702.
---------------------------------------
    Resolution: Fixed

+1 for patch. Committed to trunk along with UI side fixes.

> Theme widgets should be merged from inherited theme
> ---------------------------------------------------
>
>                 Key: AMBARI-10702
>                 URL: https://issues.apache.org/jira/browse/AMBARI-10702
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-server
>    Affects Versions: 2.1.0
>            Reporter: Myroslav Papirkovskyy
>            Assignee: Myroslav Papirkovskyy
>            Priority: Critical
>             Fix For: 2.1.0
>
>
> When implementing HDP-2.3 theme, the use case was to add just 2 more configs to the enhanced-configs. When I created the default theme.json file, I had to re-define all the widgets - even though the parent HDP-2.2 theme already had most of them defined.
> Since it is a one-time operation, the {{widgets}} from the inherited parents should be overridden by the child's widgets based on the "config" key.
> So HDP-2.3's theme.json ( [https://github.com/apache/ambari/blob/trunk/ambari-server/src/main/resources/stacks/HDP/2.3/services/YARN/themes/theme.json] ) should have only below 2 widget entries
> {code}
>       {
>         "config": "yarn-site/yarn.node-labels.enabled",
>         "widget": {
>           "type": "checkbox"
>         }
>       },
>       {
>         "config": "yarn-env/yarn_cgroups_enabled",
>         "widget": {
>           "type": "checkbox"
>         }
>       }
> {code}



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