[
https://issues.apache.org/jira/browse/AMBARI-14315?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mithun Mathew updated AMBARI-14315:
-----------------------------------
Description:
Any property with index 0 in site_properties.js ends up at the bottom of the
config section. Property with index 0 should ideally be at the top.
Reason why this happens:
https://github.com/apache/ambari/blob/trunk/ambari-web/app/mappers/configs/stack_config_properties_mapper.js#L172
config.index = uiConfigProperty.index || Infinity;
When uiConfigProperty.index = 0, config.index = Infinity
was:
Any property with index 0 in site_properties.js ends up at the bottom of the
config section. Property with index 0 should ideally be at the top.
Reason why this happens:
https://github.com/apache/ambari/blob/trunk/ambari-web/app/mappers/configs/stack_config_properties_mapper.js#L172
config.index = uiConfigProperty.index || Infinity;
When uiConfigProperty.index = 0, config.index = Infinity
> Config properties does not appear in right order
> ------------------------------------------------
>
> Key: AMBARI-14315
> URL: https://issues.apache.org/jira/browse/AMBARI-14315
> Project: Ambari
> Issue Type: Bug
> Components: ambari-web
> Affects Versions: trunk
> Reporter: Mithun Mathew
> Assignee: Mithun Mathew
> Priority: Minor
> Fix For: trunk
>
> Attachments: AMBARI-14315.patch
>
>
> Any property with index 0 in site_properties.js ends up at the bottom of the
> config section. Property with index 0 should ideally be at the top.
> Reason why this happens:
> https://github.com/apache/ambari/blob/trunk/ambari-web/app/mappers/configs/stack_config_properties_mapper.js#L172
> config.index = uiConfigProperty.index || Infinity;
> When uiConfigProperty.index = 0, config.index = Infinity
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)