Myroslav Papirkovskyy created AMBARI-10702:
----------------------------------------------

             Summary: 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)

Reply via email to