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] [Commented] (AMBARI-6777) Views: view.xml instance changes are not picked up on redeploy
Date Wed, 13 Aug 2014 19:46:12 GMT

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

Siddharth Wagle commented on AMBARI-6777:
-----------------------------------------

Committed to trunk, with fixes.

> 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
>
>         Attachments: AMBARI-6777.patch
>
>
> 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