ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Siddharth Wagle (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AMBARI-6777) Views: view.xml instance changes are not picked up on redeploy
Date Thu, 07 Aug 2014 17:34:16 GMT
Siddharth Wagle created AMBARI-6777:
---------------------------------------

             Summary: Views: view.xml instance changes are not picked up on redeploy
                 Key: AMBARI-6777
                 URL: https://issues.apache.org/jira/browse/AMBARI-6777
             Project: Ambari
          Issue Type: Task
          Components: controller
    Affects Versions: 1.7.0
            Reporter: Siddharth Wagle
            Assignee: Siddharth Wagle
             Fix For: 1.7.0


The view.xml should be checked for changes when a view is redeployed (server restart).  Instances
defined in the view.xml should not be able to be changed through the API.  That way we don't
have to worry about API changes overriding view.xml defined instances.


If I define an instance in view.xml, this works (all properties get defined): 

{code}
  <instance>
    <name>Something</name>
    <property>
      <key>ids</key>
      <value>SomeId,SomeOtherId</value>
    </property>
    <property>
      <key>SomeId.display_name</key>
      <value>Some Id Display Name</value>
    </property>
    <property>
      <key>SomeOtherId.display_name</key>
      <value>Some Other Id Display Name</value>
    </property>
</instance>
{code}

But if I put a newline between the property elements, it won't register the props past.

{code}
  <instance>
    <name>Something</name>
    <property>
      <key>ids</key>
      <value>SomeId,SomeOtherId</value>
    </property>

    <property>
      <key>SomeId.display_name</key>
      <value>Some Id Display Name</value>
    </property>
    <property>
      <key>SomeOtherId.display_name</key>
      <value>Some Other Id Display Name</value>
    </property>
</instance>
{code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message